Commit b5b64826169286b228aa84a25cb394d169c7e42e
1 parent
f50ca7fd
Exists in
master
and in
29 other branches
rails3: named_scope -> scope
(ActionItem2859)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/people_block/lib/ext/person.rb
... | ... | @@ -2,7 +2,7 @@ require_dependency 'person' |
2 | 2 | |
3 | 3 | class Person |
4 | 4 | |
5 | - named_scope :with_role, lambda { |role_id| | |
5 | + scope :with_role, lambda { |role_id| | |
6 | 6 | { :select => 'DISTINCT profiles.*', :joins => :role_assignments, :conditions => ["role_assignments.role_id = #{role_id}"] } |
7 | 7 | } |
8 | 8 | ... | ... |