Class: SocialStream::Oauth2Server::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SocialStream::Oauth2Server::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/social_stream/oauth2_server/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/social_stream/oauth2_server/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_oauth2_server_engine:install:migrations'].invoke end |
#require_javascripts ⇒ Object
13 14 15 16 17 |
# File 'lib/generators/social_stream/oauth2_server/install_generator.rb', line 13 def require_javascripts inject_into_file 'app/assets/javascripts/application.js', "//= require social_stream-oauth2_server\n", :before => '//= require_tree .' end |
#require_stylesheets ⇒ Object
19 20 21 22 |
# File 'lib/generators/social_stream/oauth2_server/install_generator.rb', line 19 def require_stylesheets append_file 'app/assets/stylesheets/social_stream.css.sass', "@import social_stream-oauth2_server\n" end |