Sha256: 42de3812b8d5278e8a2eca760689bbf5d065e79464ae0a20dc3980f5855e6b11
Contents?: true
Size: 749 Bytes
Versions: 2
Compression:
Stored size: 749 Bytes
Contents
module Refinery class TweetsGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def generate_tweets_initializer template 'config/initializers/refinery/tweets.rb.erb', File.join(destination_root, 'config', 'initializers', 'refinery', 'tweets.rb') end def rake_db rake("refinery_tweets:install:migrations") # rake("refinery_settings:install:migrations") end def append_load_seed_data create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb')) append_file 'db/seeds.rb', :verbose => true do <<-EOH # Added by Refinery CMS Tweets engine Refinery::Tweets::Engine.load_seed EOH end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-tweets-2.1.0 | lib/generators/refinery/tweets/tweets_generator.rb |
refinerycms-tweets-1.0.0 | lib/generators/refinery/tweets/tweets_generator.rb |