config/effective_regions.rb in effective_regions-1.8.6 vs config/effective_regions.rb in effective_regions-1.9.0

- old
+ new

@@ -1,31 +1,8 @@ EffectiveRegions.setup do |config| config.regions_table_name = :regions config.ck_assets_table_name = :ck_assets - # Authorization Method - # - # This method is called by all controller actions with the appropriate action and resource - # If the method returns false, an Effective::AccessDenied Error will be raised (see README.md for complete info) - # - # Use via Proc (and with CanCan): - # config.authorization_method = Proc.new { |controller, action, resource| can?(action, resource) } - # - # Use via custom method: - # config.authorization_method = :my_authorization_method - # - # And then in your application_controller.rb: - # - # def my_authorization_method(action, resource) - # current_user.is?(:admin) - # end - # - # Or disable the check completely: - # config.authorization_method = false - config.authorization_method = Proc.new { |controller, action, resource| authorize!(action, resource) } # CanCanCan - - - # Before Region Save Method # # This method is called when a User clicks the 'Save' button in the full screen editor. # It will be called once for each region immediately before the regions are saved to the database. #