# File lib/declarative_authorization/in_controller.rb, line 169 def options_for_permit (object_or_sym = nil, options = {}, bang = true) context = object = nil if object_or_sym.nil? context = self.class.decl_auth_context elsif !Authorization.is_a_association_proxy?(object_or_sym) and object_or_sym.is_a?(Symbol) context = object_or_sym else object = object_or_sym end {:user => current_user, :object => object, :context => context, :skip_attribute_test => object.nil?, :bang => bang}.merge(options) end