Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue with route generation for resources

  • Loading branch information...
commit 3ee1076cee41ba14a00d26acb24441af371901f3 1 parent 0e4faf5
Jeremy Durham authored
7 generators/authenticated/lib/insert_routes.rb
View
@@ -16,12 +16,11 @@ def route_resources(*resources)
resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
sentinel = 'ActionController::Routing::Routes.draw do |map|'
- routing_options = "map.resources #{resource_list}"
- routing_options << ", #{resource_options.inspect}" if resource_options
- logger.route "map.resources #{routing_options}"
+ resource_list << ", #{resource_options.inspect}" if resource_options
+ logger.route "map.resources #{resource_list}"
unless options[:pretend]
gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
- "#{match}\n map.resources #{routing_options}\n"
+ "#{match}\n map.resources #{resource_list}\n"
end
end
end
2  restful_authentication.gemspec
View
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["RailsJedi", "Rick Olson"]
- s.date = Date.today
+ s.date = %q{2009-12-09}
s.description = %q{This widely-used plugin provides a foundation for securely managing user.}
s.email = %q{railsjedi@gmail.com}
s.extra_rdoc_files = ["README.textile"]
Please sign in to comment.
Something went wrong with that request. Please try again.