lib/ahoy.rb in ahoy_matey-2.2.0 vs lib/ahoy.rb in ahoy_matey-2.2.1

- old
+ new

@@ -61,10 +61,10 @@ mattr_accessor :preserve_callbacks self.preserve_callbacks = [:load_authlogic, :activate_authlogic] mattr_accessor :user_method self.user_method = lambda do |controller| - (controller.respond_to?(:current_user) && controller.current_user) || (controller.respond_to?(:current_resource_owner, true) && controller.send(:current_resource_owner)) || nil + (controller.respond_to?(:current_user, true) && controller.send(:current_user)) || (controller.respond_to?(:current_resource_owner, true) && controller.send(:current_resource_owner)) || nil end mattr_accessor :exclude_method mattr_accessor :track_bots