Sha256: 3fbd2a63ecea5f6c328aaf9ef3259a1f60262dc719113671678ade0257403146

Contents?: true

Size: 746 Bytes

Versions: 20

Compression:

Stored size: 746 Bytes

Contents

class SocialStream::Linkser::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_linkser_engine:install:migrations'].invoke
  end

  def require_javascripts
    inject_into_file 'app/assets/javascripts/application.js',
                     "//= require social_stream-linkser\n",
                     :before => '//= require_tree .'
  end

  def require_stylesheets
    append_file 'app/assets/stylesheets/social_stream.css.sass',
                "@import social_stream-linkser\n"
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
social_stream-2.2.2 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.2.1 lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.2.1 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.2.0 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.2.0 lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.1.1 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.1.0 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.1.0 lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.4 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.3 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.2 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.1 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.0 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.0.0 lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.0.beta3 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.0.0.beta3 lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.0.beta2 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.0.0.beta2 lib/generators/social_stream/linkser/install_generator.rb
social_stream-2.0.0.beta1 linkser/lib/generators/social_stream/linkser/install_generator.rb
social_stream-linkser-2.0.0.beta1 lib/generators/social_stream/linkser/install_generator.rb