Sha256: 2e35b5fededa085f7ac92fe49f829d5b94b24fc7565d76a8e724257402fea6d1

Contents?: true

Size: 568 Bytes

Versions: 49

Compression:

Stored size: 568 Bytes

Contents

module Cmor
  module Testimonials
    module Backend
      module Generators
        class InstallGenerator < Rails::Generators::Base
          desc 'Generates the initializer'

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

          def generate_initializer
            template 'initializer.rb', 'config/initializers/cmor_testimonials_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

49 entries across 49 versions & 1 rubygems

Version Path
cmor_testimonials_backend-0.0.16.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.15.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.14.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.13.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.12.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.11.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.10.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.9.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb
cmor_testimonials_backend-0.0.8.pre lib/generators/cmor/testimonials/backend/install/install_generator.rb