Sha256: 2ba2b8b09ab5ebe851509859e9b5c98249a8e4f0857f298962b8ba39aba0c30c

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 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.yml", "config/locales/carnival.pt.yml"
        template "../../../../config/locales/devise.pt.yml", "config/locales/devise.pt.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

1 entries across 1 versions & 1 rubygems

Version Path
carnival-0.0.11 lib/generators/carnival/install_generator.rb