lib/surrounded/access_control.rb in surrounded-0.9.10 vs lib/surrounded/access_control.rb in surrounded-0.9.11

- old
+ new

@@ -3,12 +3,10 @@ class AccessError < ::StandardError; end end module AccessControl def self.extended(base) base.send(:include, AccessMethods) - unless defined?(base::AccessError) - base.const_set(:AccessError, Class.new(::Surrounded::Context::AccessError)) - end + Surrounded::Exceptions.define(base, exceptions: :AccessError) end private def disallow(*names, &block) \ No newline at end of file