Sha256: a5627e7e5356812bd2bb78b43ee302c7e9d8adabe8d859b83061109b21c1392b
Contents?: true
Size: 742 Bytes
Versions: 22
Compression:
Stored size: 742 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 append_file 'app/assets/stylesheets/social_stream.css.sass', "@import social_stream-events\n" end end
Version data entries
22 entries across 22 versions & 2 rubygems