/usr/lib/ruby/vendor_ruby/generators/resource_controller.rb is in ruby-merb-haml 1.1.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | [:activerecord, :datamapper, :sequel, :none].each do |orm|
[:show, :index, :edit, :new].each do |view|
Merb::Generators::ResourceControllerGenerator.template "view_#{view}_haml", :orm => orm, :template_engine => :haml do |t|
t.source = File.join(File.dirname(__FILE__), "templates/resource_controller/#{orm}/app/views/%file_name%/#{view}.html.haml")
t.destination = File.join("app/views", base_path, "#{file_name}/#{view}.html.haml")
end
end
end
|