Sha256: 57045316c3484b0b6bcf8bc255144273806e226e3b47b1fd5f2670143a632e5b

Contents?: true

Size: 369 Bytes

Versions: 7

Compression:

Stored size: 369 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
        execute "rails g permits --roles #{roles}"
      end           
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cream-0.6.1 lib/generators/cream/config/modules/permits_config.rb
cream-0.6.0 lib/generators/cream/config/modules/permits_config.rb
cream-0.5.10 lib/generators/cream/config/modules/permits_config.rb
cream-0.5.9 lib/generators/cream/config/modules/permits_config.rb
cream-0.5.8 lib/generators/cream/config/modules/permits_config.rb
cream-0.5.7 lib/generators/cream/config/modules/permits_config.rb
cream-0.5.6 lib/generators/cream/config/modules/permits_config.rb