lib/abilities.rb in abilities-0.1.1 vs lib/abilities.rb in abilities-0.1.2

- old
+ new

@@ -1,16 +1,25 @@ require 'abilities/action_controller/base' require 'abilities/action_view/base' require 'abilities/proxy' +require 'abilities/configuration' require 'abilities/definitions' require 'abilities/exceptions' require 'abilities/concern' require 'abilities/railtie' module Abilities class << self + def configure + yield configuration + end + + def configuration + @configuration ||= Configuration.new + end + def define(&block) @block = block end def can?(actor, action, subject) @@ -20,6 +29,6 @@ def cannot?(*args) !can?(*args) end end -end \ No newline at end of file +end