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

Commit

Permalink
[dm-constraints] silenced warning: already initialized constant OPTIONS
Browse files Browse the repository at this point in the history
[#985 state:resolved]
  • Loading branch information
snusnu committed Jul 21, 2009
1 parent e118e27 commit 50c8a7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dm-constraints/lib/dm-constraints.rb
Expand Up @@ -12,7 +12,7 @@ class OneToMany::Relationship
include Extlib::Hook
include Constraints::DeleteConstraint

OPTIONS = (OPTIONS + [ :constraint ]).freeze
OPTIONS << :constraint

attr_reader :constraint

Expand All @@ -25,7 +25,8 @@ class OneToMany::Relationship
end

class ManyToMany::Relationship
OPTIONS = (OPTIONS + [ :constraint ]).freeze

OPTIONS << :constraint

private

Expand Down

0 comments on commit 50c8a7f

Please sign in to comment.