Method: Couch::Generators::ViewGenerator#create_view_function

Defined in:
lib/couch/generators/view/view_generator.rb

#create_view_functionObject



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