Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # add to every applicable model
- def self.get_paths
- path_ar = []
- self.find(:all).each do |model|
- path_ar << {:url => "/#{model.class.name.downcase.pluralize}/#{model.to_param}", :last_mod => model.updated_at.strftime('%Y-%m-%d')}
- end
- path_ar
- end
Add Comment
Please, Sign In to add comment