Skip to content
Browse files

reduce number of Strings

  • Loading branch information...
1 parent 2635a29 commit ef9bbb87e8228940f768580a7d05d5feadec0d1e @amatsuda amatsuda committed Jun 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 activerecord/lib/active_record/schema_dumper.rb
  2. +1 −1 railties/lib/rails/generators/named_base.rb
View
2 activerecord/lib/active_record/schema_dumper.rb
@@ -175,7 +175,7 @@ def default_string(value)
when BigDecimal
value.to_s
when Date, DateTime, Time
- "'" + value.to_s(:db) + "'"
+ "'#{value.to_s(:db)}'"
else
value.inspect
end
View
2 railties/lib/rails/generators/named_base.rb
@@ -135,7 +135,7 @@ def plural_file_name
end
def route_url
- @route_url ||= class_path.collect{|dname| "/" + dname }.join('') + "/" + plural_file_name
+ @route_url ||= class_path.collect {|dname| "/" + dname }.join + "/" + plural_file_name
end
# Tries to retrieve the application name or simple return application.

0 comments on commit ef9bbb8

Please sign in to comment.
Something went wrong with that request. Please try again.