Sha256: 31fd0d1f0ed3bc690df80640bff92cb8fd984226adee7217e4ac5c70f2783c00

Contents?: true

Size: 552 Bytes

Versions: 57

Compression:

Stored size: 552 Bytes

Contents

module Cmor
  module Rbac
    module Backend
      module Generators
        class InstallGenerator < Rails::Generators::Base
          desc 'Generates the intializer'

          source_root File.expand_path('../templates', __FILE__)

          def generate_initializer
            copy_file 'initializer.rb', 'config/initializers/cmor_rbac_backend.rb'
          end

          def generate_routes
            route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
          end
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
cmor_rbac_backend-0.0.60.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.59.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.58.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.57.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.56.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.55.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.54.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.53.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.52.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.51.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.50.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.49.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.48.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.45.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.44.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.43.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.42.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.41.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.40.pre lib/generators/cmor/rbac/backend/install/install_generator.rb
cmor_rbac_backend-0.0.39.pre lib/generators/cmor/rbac/backend/install/install_generator.rb