class Skr::NullUser
Implements the interface for a User model in Stockor
This implementation grants access to everything
Public Instance Methods
can_delete?(type, model)
click to toggle source
@param model [Skr::Model] @return [Boolean] Can the User delete the model?
# File lib/skr/null_user.rb, line 26 def can_delete?(type, model) true end
can_read?( model, attribute=nil)
click to toggle source
@param model [Skr::Model] @param attribute [Symbol] @return [Boolean] Can the User view the model?
# File lib/skr/null_user.rb, line 13 def can_read?( model, attribute=nil) true end
can_write?(model, attribute=nil)
click to toggle source
@param model [Skr::Model] @param attribute [Symbol] @return [Boolean] Can the User create and update the model?
# File lib/skr/null_user.rb, line 20 def can_write?(model, attribute=nil) true end
id()
click to toggle source
Used to track created_by and updated_by
# File lib/skr/null_user.rb, line 7 def id 0 end