Sha256: 25ea38bb771e879ccbb894a75fd479581372a278117b7c13ee0231e33fae1a57

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

require 'couch/generators/named_base'

module Couch::Generators
  class ViewGenerator < NamedBase
    def create_view_function
      path = "views/#{pluralized_model_name}"
      empty_directory path
      template "map.js", "#{path}/map.js"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
couch-0.0.4 lib/couch/generators/view/view_generator.rb
couch-0.0.3 lib/couch/generators/view/view_generator.rb