Sha256: 1ddb78ea41d50cb47f936403022aa797d92f39b4b4e067e501377b6f237b9f34
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
module Coalla class DefaultPolicy def initialize(context) @context = context end def action_enabled?(action, options = {}) return true end def field_enabled?(field, options = {}) return true end def section_enabled?(section, options = {}) return true end def sanitize_params(params, options = {}) return params end protected attr_reader :context end mattr_accessor :policy @@policy = DefaultPolicy end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.7.0.0 | lib/coalla/builders/policy.rb |
coalla-cms-0.6.1.1 | lib/coalla/builders/policy.rb |
coalla-cms-0.6.0.9 | lib/coalla/builders/policy.rb |