class ActsAsTaggableOnDynamic::DynamicMassAssignmentAuthorizer

Public Class Methods

new(model, orgAuthorizer) click to toggle source
# File lib/acts_as_taggable_on_dynamic/dynamic_mass_assignment_authorizer.rb, line 3
def initialize(model, orgAuthorizer)
  @model = model
  @orgAuthorizer = orgAuthorizer
end

Public Instance Methods

deny?(key) click to toggle source
# File lib/acts_as_taggable_on_dynamic/dynamic_mass_assignment_authorizer.rb, line 8
def deny?(key)
  if (@model.dynamic_tag_context_attribute?(key) || @model.tag_list_attribute?(key))
    false
  else
    @orgAuthorizer.deny?(key)
  end
end