Sha256: 8f8faa56d14edb23526aad08d2ad30914578a2f4163df07488a110fb2d42dbc7
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
Merb::Generators::ResourceControllerGenerator.template :controller_couchrest, :orm => :couchrest do |t| t.source = File.dirname(__FILE__) / "templates/resource_controller/app/controllers/%file_name%.rb" t.destination = "app/controllers" / base_path / "#{file_name}.rb" end [:index, :show, :edit, :new].each do |view| Merb::Generators::ResourceControllerGenerator.template "view_#{view}_couchrest".to_sym, :orm => :couchrest, :template_engine => :erb do |t| t.source = File.dirname(__FILE__) / "templates/resource_controller/app/views/%file_name%/#{view}.html.erb" t.destination = "app/views" / base_path / "#{file_name}/#{view}.html.erb" end end
Version data entries
3 entries across 3 versions & 1 rubygems