Sha256: a305a9ce4dc3a96d97019c679218e0f5d1e452dc905ec105855418cf489fb9a9
Contents?: true
Size: 609 Bytes
Versions: 3
Compression:
Stored size: 609 Bytes
Contents
class Rafters::InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def create_initializer copy_file "initializer.rb", "config/initializers/rafters.rb" end def create_directories empty_directory "app/components" end def add_asset_requires inject_into_file "app/assets/stylesheets/application.css", after: "*= require_tree .\n" do <<-'RUBY' *= require_components` RUBY end inject_into_file "app/assets/javascripts/application.js", after: "//= require_tree .\n" do <<-'RUBY' //= require_components RUBY end end end
Version data entries
3 entries across 3 versions & 1 rubygems