Sha256: 787b63e1c5f0719edba1e8195255e8cf4ca0fd3c18af467dc94780a01960e105
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
module I0n module Generators class LayoutGenerator < Rails::Generators::Base require 'rails/generators' require 'rails/generators/migration' include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def setup_application_for_haml inject_into_file 'config/application.rb', IO.read("#{LayoutGenerator.source_root}/config/_application.rb", :after => 'config.encoding = "utf-8"' end def create_compass_config copy_file 'config/initializers/compass.rb', 'config/initializers/compass.rb' copy_file 'config/compass.rb', 'config/compass.rb' end def create_sass_extensions copy_file 'lib/sass_extensions', 'lib/sass_extensions' end def create_sass_directory directory 'app/sass', 'app/sass' end def create_layout copy_file 'app/views/layout/application.haml', 'app/views/layout/application.haml' copy_file 'app/views/shared/_error_messages.haml', 'app/views/shared/_error_messages.haml' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i0n_rails3_generators-0.2.5 | lib/generators/i0n/layout/layout_generator.rb |