Class: Seymour::FeedGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Seymour::FeedGenerator
- Defined in:
- lib/generators/seymour/feed/feed_generator.rb
Instance Method Summary collapse
Instance Method Details
#build_feed ⇒ Object
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 |