Module: HasUuid::ActiveRecord::BelongsToAssociation
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/has_uuid/active_record/belongs_to_association.rb
Instance Method Summary collapse
Instance Method Details
#foreign_uuid_present? ⇒ Boolean
22 23 24 |
# File 'lib/has_uuid/active_record/belongs_to_association.rb', line 22 def foreign_uuid_present? owner.class.columns.map(&:name).include?(reflection.foreign_uuid.to_s) end |