Skip to content

Commit

Permalink
Use scope instead of named_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
David Genord II authored and ttilley committed Aug 27, 2010
1 parent 690137c commit 2cc59da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aasm/persistence/active_record_persistence.rb
Expand Up @@ -238,7 +238,7 @@ def aasm_read_state
module NamedScopeMethods
def aasm_state_with_named_scope name, options = {}
aasm_state_without_named_scope name, options
self.named_scope name, :conditions => { "#{table_name}.#{self.aasm_column}" => name.to_s} unless self.respond_to?(name)
self.scope name, :conditions => { "#{table_name}.#{self.aasm_column}" => name.to_s} unless self.respond_to?(name)
end
end
end
Expand Down

0 comments on commit 2cc59da

Please sign in to comment.