Sha256: bb9fd545c9cbf1b025937e1c8afdb19f7c45628827e42b7a346d210940d7c39a

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

require 'rails/generators'
module Seymour
  class FeedGenerator < ::Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seymour-0.0.9 lib/generators/seymour/feed/feed_generator.rb