class SocialStream::Linkser::InstallGenerator
Public Instance Methods
create_migration_file()
click to toggle source
# File lib/generators/social_stream/linkser/install_generator.rb, line 6 def create_migration_file require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].reenable Rake::Task['social_stream_linkser_engine:install:migrations'].invoke end
require_javascripts()
click to toggle source
# File lib/generators/social_stream/linkser/install_generator.rb, line 13 def require_javascripts inject_into_file 'app/assets/javascripts/application.js', "//= require social_stream-linkser\n", :before => '//= require_tree .' end
require_stylesheets()
click to toggle source
# File lib/generators/social_stream/linkser/install_generator.rb, line 19 def require_stylesheets append_file 'app/assets/stylesheets/social_stream.css.sass', "@import social_stream-linkser\n" end