Sha256: b85a58560a2a7df55f5ec7c60ba41e86887aa0942bc374ec08caece4809b22f3

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

module Kakimasu
  module Generators
    class PolicyGenerator < Rails::Generators::Base
      puts "Generating Policy for you ..."
      # Sets root for more compact file copying
      source_root File.expand_path("../../../../app/policies", __FILE__)

      # Copy policies for ability to edit them
      def copy_policies
        copy_file 'translation_policy.rb', 'app/policies/translations_policy.rb'
        puts ''
        puts '***********************************'
        puts 'Policies was successfully generated!'   # Success message
        puts '***********************************'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kakimasu-1.0.0 lib/generators/kakimasu/policy_generator.rb