Sha256: 7f69135183457261030b8bdf3c7d1a1fd596d0730e980f4039e0740c6730bc9d
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 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