Skip to content

Commit

Permalink
Merge branch 'master' of github.com:binarylogic/authlogic
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Aug 26, 2009
2 parents bf547bb + 73c4ccc commit 847ff8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/authlogic/session/active_record_trickery.rb
Expand Up @@ -40,7 +40,8 @@ def self_and_descendants_from_active_record

# For rails >3.0
def model_name
ActiveModel::Name.new(self.to_s)
clazz = defined?(ActiveModel) ? ActiveModel::Name : ActiveSupport::ModelName
clazz.new(self.to_s)
end
end

Expand Down

0 comments on commit 847ff8e

Please sign in to comment.