Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix datamapper deprecated method usage #102

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 17, 2011
  1. @brain-geek
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/machinist/data_mapper.rb
View
2  lib/machinist/data_mapper.rb
@@ -6,7 +6,7 @@ module Machinist
class DataMapperAdapter
def self.has_association?(object, attribute)
- object.class.relationships.has_key?(attribute)
+ object.class.relationships.named?(attribute)
end
def self.class_for_association(object, attribute)
Something went wrong with that request. Please try again.