Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Bugfix in Leaf#database method
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Morgan committed Jul 4, 2008
1 parent d5069e2 commit e94b3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/leaf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def database_name # :nodoc:
# Leaf class name
return self.class.to_s.to_sym if DataMapper::Database[self.class.to_s.to_sym]
# Leaf class name, underscored
return self.class.methodize.to_sym if DataMapper::Database[self.class.methodize.to_sym]
return self.class.to_s.methodize.to_sym if DataMapper::Database[self.class.to_s.methodize.to_sym]
# I give up
return nil
end
Expand Down

0 comments on commit e94b3fb

Please sign in to comment.