Commit 6c9e4be69266f789f85120694ed5d28a0086bd55

Authored by Leandro Santos
1 parent 5086fd08
Exists in master

adapting scope to rails4

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/ext/article.rb
... ... @@ -9,6 +9,6 @@ class Article
9 9  
10 10 attr_accessible :free_conference
11 11  
12   - scope :conference_articles, joins(:profile).where("profiles.identifier = 'conferencia'")
  12 + scope :conference_articles, -> { joins(:profile).where("profiles.identifier = 'conferencia'") }
13 13  
14 14 end
... ...