Sha256: 8f17a5da47bbc65d8b463af46ed5bf8fe555b30a5c16c717ec3521d4f98d93b5
Contents?: true
Size: 803 Bytes
Versions: 164
Compression:
Stored size: 803 Bytes
Contents
class SocialStream::Events::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_events_engine:install:migrations'].invoke end def require_javascripts inject_into_file 'app/assets/javascripts/application.js', "//= require social_stream-events\n", :before => '//= require_tree .' end def require_stylesheets inject_into_file 'app/assets/stylesheets/application.css', " *= require social_stream-events\n", :before => ' *= require_tree .' end end
Version data entries
164 entries across 164 versions & 4 rubygems