Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Removed unneccesary :class_names.
Browse files Browse the repository at this point in the history
Extlib supports finding parent and sibling constants, so there's no
need to specify a :class_name for relationships in the same module.
This confirms that #411 is resolved.
  • Loading branch information
bernerdschaefer committed Jul 30, 2008
1 parent dbf2149 commit dae08c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/integration/association_spec.rb
Expand Up @@ -721,7 +721,7 @@ def self.default_repository_name
end
property :id, Serial
property :name, String
belongs_to :shop, :class_name => 'Sweets::Shop'
belongs_to :shop
has 1, :wife
has n, :children
has n, :toys, :through => :children
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/associations/many_to_one_spec.rb
Expand Up @@ -24,7 +24,7 @@ def self.default_repository_name
property :name, String
property :type, Discriminator

belongs_to :parent, :class_name => 'ManyToOneSpec::Parent'
belongs_to :parent
end

class StepChild < Child
Expand Down

0 comments on commit dae08c0

Please sign in to comment.