Skip to content

Commit

Permalink
Update more ActiveRecord :all queries to the new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
henare committed Jun 24, 2015
1 parent e183b1f commit baa504b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/planning_alerts_sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def generate
s.add_url get_involved_path, :changefreq => :monthly

# All the applications pages
Application.find(:all).each do |application|
Application.all.each do |application|
s.add_url application_path(application), :changefreq => :monthly, :lastmod => application.date_scraped
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.up
end
Application.reset_column_information
# Load all the applications and resave them to force the geocoder to save the address bits and pieces
Application.find(:all).each do |app|
Application.all.each do |app|
app.save!
end
end
Expand Down

0 comments on commit baa504b

Please sign in to comment.