module Hippo::Concerns::ApiAttributeAccess::AccessChecks

Public Instance Methods

can_delete_attributes?(params, user) click to toggle source

Can the API delete the model? This check is performed before we bother checking each attribute individually

# File lib/hippo/concerns/set_attribute_data.rb, line 29
def can_delete_attributes?(params, user)
    return user.can_delete?(self, params)
end
can_read_attributes?(params, user) click to toggle source

Can the API read data from the model?

# File lib/hippo/concerns/set_attribute_data.rb, line 17
def can_read_attributes?(params, user)
    return user.can_read?(self, params)
end
can_write_attributes?(params, user) click to toggle source

Can the API write data to the model? This check is performed before we bother checking each attribute individually

# File lib/hippo/concerns/set_attribute_data.rb, line 23
def can_write_attributes?(params, user)
    return user.can_write?(self, params)
end