Sha256: c601915bee43418eb3bfa554450a6b52efdc263ea7497e2699816d00d814c866
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
### context_roles.rb # # Defines the context roles for the CBAC system # include Cbac puts "Loading context_roles" # Defining context roles ContextRole.add :everybody do true end ContextRole.add :not_logged_in_user do |context| context.current_user.nil? end ContextRole.add :logged_in_user do |context| not context.current_user.nil? end
Version data entries
3 entries across 3 versions & 1 rubygems