Sha256: 1bb718254013d2a5b731365190b6dffa05aec1cb2539d99f5b04f3cd147a8386
Contents?: true
Size: 815 Bytes
Versions: 148
Compression:
Stored size: 815 Bytes
Contents
class SocialStream::Documents::InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].reenable Rake::Task['social_stream_documents_engine:install:migrations'].invoke end def require_javascripts inject_into_file 'app/assets/javascripts/application.js', "//= require social_stream-documents\n", :before => '//= require_tree .' end def require_stylesheets inject_into_file 'app/assets/stylesheets/application.css', " *= require social_stream-documents\n", :before => ' *= require_tree .' end end
Version data entries
148 entries across 148 versions & 4 rubygems