Sha256: 618dc57cd40e43abbabafdc4a97933a6d8bc1743597ce2eac4ceb4a5c6b8503b

Contents?: true

Size: 303 Bytes

Versions: 6

Compression:

Stored size: 303 Bytes

Contents

module Canner
  module Generators
    class FetchRolesGenerator < ::Rails::Generators::Base
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      def copy_application_policy
        template 'base_policy.rb', 'app/policies/base_policy.rb'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
canner-0.4.0 lib/generators/canner/fetch_roles/fetch_roles_generator.rb
canner-0.3.0 lib/generators/canner/fetch_roles/fetch_roles_generator.rb
canner-0.2.2 lib/generators/canner/fetch_roles/fetch_roles_generator.rb
canner-0.2.1 lib/generators/canner/fetch_roles/fetch_roles_generator.rb
canner-0.2.0 lib/generators/canner/fetch_roles/fetch_roles_generator.rb
canner-0.1.0 lib/generators/canner/fetch_roles/fetch_roles_generator.rb