Sha256: 452a726e14150d53e3f9cbeb2507af59448bbd17b8370e994229ba264144b895
Contents?: true
Size: 456 Bytes
Versions: 15
Compression:
Stored size: 456 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc module Associations #:nodoc class Proxy #:nodoc def custom_fields_association_name(association_name) "#{association_name.to_s.singularize}_custom_fields".to_sym end def custom_fields?(object, association_name) object.respond_to?(custom_fields_association_name(association_name)) end def klass @klass end end end end
Version data entries
15 entries across 15 versions & 2 rubygems