Sha256: 62c01f1f46b8da937af1a9088c8122f7a94c6e3d6c6d7a9cc2f1b57c00d965b7

Contents?: true

Size: 562 Bytes

Versions: 30

Compression:

Stored size: 562 Bytes

Contents

module Typus
  module Generators
    class InitializersGenerator < Rails::Generators::Base

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

      class_option :admin_title, :default => Rails.root.basename

      desc <<-MSG
Description:
  Copies all Typus initializers into your application.

      MSG

      def generate_initializers
        template "config/initializers/typus.rb", "config/initializers/typus.rb"
        template "config/initializers/typus_resources.rb", "config/initializers/typus_resources.rb"
      end

    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
typus-3.1.0.rc4 lib/generators/typus/initializers_generator.rb
typus-3.1.0.rc3 lib/generators/typus/initializers_generator.rb
typus-3.1.0.rc2 lib/generators/typus/initializers_generator.rb
typus-3.0.11.rc2 lib/generators/typus/initializers_generator.rb
typus-3.0.11.rc1 lib/generators/typus/initializers_generator.rb
typus-3.1.0.rc1 lib/generators/typus/initializers_generator.rb
typus-3.0.10 lib/generators/typus/initializers_generator.rb
typus-3.0.9 lib/generators/typus/initializers_generator.rb
typus-3.0.8 lib/generators/typus/initializers_generator.rb
typus-3.0.7 lib/generators/typus/initializers_generator.rb