Skip to content

Commit

Permalink
Added reference to gem in validation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwinM committed Dec 12, 2011
1 parent f75d227 commit 19e0638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_tenant/model_extensions.rb
Expand Up @@ -76,7 +76,7 @@ def self.is_scoped_by_tenant?
validates_each a.foreign_key.to_sym do |record, attr, value|
# Invalidate the association unless the parent is known to the tenant or no association has
# been set.
record.errors.add attr, "is invalid" unless value.nil? || association_class.where(:id => value).present?
record.errors.add attr, "is invalid (Acts_as_Tenant)" unless value.nil? || association_class.where(:id => value).present?
end
end
end
Expand Down

0 comments on commit 19e0638

Please sign in to comment.