Sha256: d3cf5a3e402baea1b5aef65953500658caaea04868921058e0b4879b03d52516
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
class SocialStream::InstallGenerator < Rails::Generators::Base #:nodoc: include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_initializer_file copy_file 'initializer.rb', 'config/initializers/social_stream.rb' end def create_config_file copy_file 'seeds.yml', 'db/seeds/social_stream.yml' end # TODO: hook_for :orm require 'rails/generators/active_record' def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end def create_migration_file migration_template 'migration.rb', 'db/migrate/create_social_stream.rb' end def add_social_stream_routes route "social_stream" end hook_for :authentication end
Version data entries
4 entries across 4 versions & 1 rubygems