lib/authority/controller.rb in authority-2.4.1 vs lib/authority/controller.rb in authority-2.4.2
- old
+ new
@@ -12,12 +12,10 @@
end
end
included do
rescue_from(Authority::SecurityViolation, :with => Authority::Controller.security_violation_callback)
- class << self
- attr_accessor :authority_resource
- end
+ class_attribute :authority_resource, instance_reader: false
end
module ClassMethods
# Sets up before_filter to ensure user is allowed to perform a given controller action