Class: Seymour::FeedGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/seymour/feed/feed_generator.rb

Instance Method Summary collapse

Instance Method Details

#build_feedObject



6
7
8
9
10
# File 'lib/generators/seymour/feed/feed_generator.rb', line 6

def build_feed
  feed_root = 'app/models/feeds'
  empty_directory feed_root
  template 'feed.rb', "#{feed_root}/#{singular_name}_feed.rb"
end