Sha256: 1f5bd3349a2899ab527e0c5cb3cd2981016ea2c803e85a552b16c7fb2d8e2d5f

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

module Cream::Generators 
  module Config
    module Permits      
      def permits_gems
        gem 'cancan-permits'        
      end 
      
      def configure_permits
        logger.debug "Configure Permits"
        # Run permits generator to generate permit for each role
        rgen "permits --roles #{roles}"
      end           
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cream-0.7.0 lib/generators/cream/config/modules/permits_config.rb
cream-0.6.4 lib/generators/cream/config/modules/permits_config.rb
cream-0.6.3 lib/generators/cream/config/modules/permits_config.rb