module PopulateMe::DocumentMixins::Schema
Public Class Methods
included(base)
click to toggle source
# File lib/populate_me/document_mixins/schema.rb, line 5 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
field_applicable?(f)
click to toggle source
Instance methods
# File lib/populate_me/document_mixins/schema.rb, line 185 def field_applicable? f p_type = self.class.polymorphic? ? self.polymorphic_type : nil self.class.field_applicable? f, p_type end
relationship_applicable?(f)
click to toggle source
# File lib/populate_me/document_mixins/schema.rb, line 190 def relationship_applicable? f p_type = self.class.polymorphic? ? self.polymorphic_type : nil self.class.relationship_applicable? f, p_type end