Sha256: b3334b7ed158f2ac1990dbd9b596df517804a953b3a3fab2702fc7e3db42c601
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
Merb::Generators::ResourceControllerGenerator.template :controller_sequel, :orm => :sequel do source(File.dirname(__FILE__), "templates/resource_controller/app/controllers/%file_name%.rb") destination("app/controllers", base_path, "#{file_name}.rb") end [:index, :show, :edit, :new].each do |view| Merb::Generators::ResourceControllerGenerator.template "view_#{view}_sequel".to_sym, :orm => :sequel, :template_engine => :erb do source(File.dirname(__FILE__), "templates/resource_controller/app/views/%file_name%/#{view}.html.erb") destination("app/views", base_path, "#{file_name}/#{view}.html.erb") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
merb_sequel-0.9.4 | lib/generators/resource_controller.rb |
merb_sequel-0.9.6 | lib/generators/resource_controller.rb |
merb_sequel-0.9.5 | lib/generators/resource_controller.rb |