Sha256: 3eea5771cbc7f7e5175c7f8d01bf4c4b4799132f9f21d81a714546f29ac78253

Contents?: true

Size: 808 Bytes

Versions: 27

Compression:

Stored size: 808 Bytes

Contents

module Carnival
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Install the Carnival Engine"
      source_root File.expand_path("../templates", __FILE__)

      def install
        route "mount_carnival_at 'admin'"
        rake 'carnival_engine:install:migrations'
        template "../../../../config/locales/carnival.en.yml", "config/locales/carnival.en.yml"
        template "../../../../config/locales/carnival.pt-br.yml", "config/locales/carnival.pt-br.yml"
        template "../../../../config/locales/devise.pt-br.yml", "config/locales/devise.pt-br.yml"
        template "../../../../config/locales/devise.en.yml", "config/locales/devise.en.yml"
        template "carnival_initializer.rb", "config/initializers/carnival_initializer.rb"
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
carnival-0.0.59 lib/generators/carnival/install_generator.rb
carnival-0.0.58 lib/generators/carnival/install_generator.rb
carnival-0.0.57 lib/generators/carnival/install_generator.rb
carnival-0.0.56 lib/generators/carnival/install_generator.rb
carnival-0.0.55 lib/generators/carnival/install_generator.rb
carnival-0.0.54 lib/generators/carnival/install_generator.rb
carnival-0.0.53 lib/generators/carnival/install_generator.rb
carnival-0.0.52 lib/generators/carnival/install_generator.rb
carnival-0.0.51 lib/generators/carnival/install_generator.rb
carnival-0.0.50 lib/generators/carnival/install_generator.rb
carnival-0.0.49 lib/generators/carnival/install_generator.rb
carnival-0.0.48 lib/generators/carnival/install_generator.rb
carnival-0.0.47 lib/generators/carnival/install_generator.rb
carnival-0.0.45 lib/generators/carnival/install_generator.rb
carnival-0.0.44 lib/generators/carnival/install_generator.rb
carnival-0.0.43 lib/generators/carnival/install_generator.rb
carnival-0.0.42 lib/generators/carnival/install_generator.rb
carnival-0.0.41 lib/generators/carnival/install_generator.rb
carnival-0.0.40 lib/generators/carnival/install_generator.rb
carnival-0.0.39 lib/generators/carnival/install_generator.rb