Skip to content

Commit

Permalink
Small change to datamapper generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 21, 2009
1 parent bd8a4c7 commit 1913b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/datamapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ module Rails
module Generators
class GeneratedAttribute #:nodoc:
def type_class
return 'DateTime' if type == 'datetime'
return type.camelcase
return 'DateTime' if type.to_s == 'datetime'
return type.to_s.camelcase
end
end
end
Expand Down

0 comments on commit 1913b95

Please sign in to comment.