Sha256: 3fd33bdab1dbe11e90e4ebfc09e11809019f7d7e5e2d6a79e6005007391db7e4

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

case
when defined?(Rails::Generator::Base)
  # Generator for rails < 3
  class AssetsConfigGenerator < Rails::Generator::Base
    def manifest
      record do |m|
        m.file 'assets', 'config/assets'
      end
    end
  end
when defined?(Rails::Generators::Base)
  # Generator for rails >= 3
  class AssetsConfigGenerator < Rails::Generators::Base
    def create_assets_config
      create_file 'config/assets', File.read(File.join(File.dirname(__FILE__), 'templates/assets'))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dump-1.2.0 lib/generators/assets_config/assets_config_generator.rb
dump-1.1.0 lib/generators/assets_config/assets_config_generator.rb
dump-1.0.8 lib/generators/assets_config/assets_config_generator.rb
dump-1.0.7 lib/generators/assets_config/assets_config_generator.rb
dump-1.0.6 lib/generators/assets_config/assets_config_generator.rb
dump-1.0.5 lib/generators/assets_config/assets_config_generator.rb