Modify routes.rb deleting the namespaced resources
# File vendor/plugins/ubiquo_core/lib/ubiquo/extensions/rails_generator.rb, line 70
70: def namespaced_route_resources(namespace, *resources)
71: resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
72: look_for = "#{namespace}.resources #{resource_list}\n"
73: logger.route "#{namespace}.resources #{resource_list}"
74: gsub_file 'config/routes.rb', /(\n\s*#{look_for})/mi, "\n"
75: end
(Not documented)
# File vendor/plugins/ubiquo_core/lib/ubiquo/extensions/rails_generator.rb, line 82
82: def nested_route_resources(parent, *resources)
83: resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
84:
85: unless options[:pretend]
86: gsub_file(
87: 'config/routes.rb',
88: /^[^\n]*#{parent}.resources?\s#{resource_list}\n/mi,
89: "")
90: end
91: end
(Not documented)
# File vendor/plugins/ubiquo_core/lib/ubiquo/extensions/rails_generator.rb, line 93
93: def ubiquo_migration
94: Rake::Task['db:rollback'].execute(nil)
95: end
Remove ubiquo tab only if unmodified
# File vendor/plugins/ubiquo_core/lib/ubiquo/extensions/rails_generator.rb, line 77
77: def ubiquo_tab(name)
78: look_for = Ubiquo::tab_template(name)
79: gsub_file 'app/views/navigators/_main_navtabs.html.erb', /#{Regexp.escape(look_for)}/mi, 'end # Last tab'
80: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.