lib/datashift/method_detail.rb in datashift-0.8.0 vs lib/datashift/method_detail.rb in datashift-0.9.0
- old
+ new
@@ -23,9 +23,14 @@
def self.supported_types_enum
@type_enum ||= Set[:assignment, :belongs_to, :has_one, :has_many]
@type_enum
end
+ def self.association_types_enum
+ @assoc_type_enum ||= Set[:belongs_to, :has_one, :has_many]
+ @assoc_type_enum
+ end
+
# When looking up an association, try each of these in turn till a match
# i.e find_by_name .. find_by_title and so on, lastly try the raw id
@@insistent_find_by_list ||= [:name, :title, :id]
# Name is the raw, client supplied name
\ No newline at end of file