Class: Couch::Generators::ViewGenerator
- Defined in:
- lib/couch/generators/view/view_generator.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#create_view_function ⇒ Object
5 6 7 8 9 |
# File 'lib/couch/generators/view/view_generator.rb', line 5 def create_view_function path = "views/#{pluralized_model_name}" empty_directory path template "map.js", "#{path}/map.js" end |