Sha256: a7c508f88b9e747cd99ed94b8498add5ec01d065aef9be8fc5ca3b4fc16b3343

Contents?: true

Size: 446 Bytes

Versions: 18

Compression:

Stored size: 446 Bytes

Contents

module TokenAuthenticateMe
  module Generators
    class PoliciesGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def create_invite_poliocy
        copy_file 'invite_policy.rb', 'app/policies/token_authenticate_me/invite_policy.rb'
      end

      def create_user_poliocy
        copy_file 'user_policy.rb', 'app/policies/token_authenticate_me/user_policy.rb'
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
token_authenticate_me-0.9.2 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.11.2 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.11.1 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.11.0 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.10.0 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.9.1 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.9.0 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.8.0 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.7.0 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.6.0 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.7 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.6 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.5 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.4 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.3 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.2 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.1 lib/generators/token_authenticate_me/policies/policies_generator.rb
token_authenticate_me-0.5.0 lib/generators/token_authenticate_me/policies/policies_generator.rb