app/models/binda/date.rb in binda-0.1.5 vs app/models/binda/date.rb in binda-0.1.6
- old
+ new
@@ -1,13 +1,9 @@
module Binda
# This class provides support for dates.
class Date < ApplicationRecord
- # Associations
- belongs_to :fieldable, polymorphic: true
- belongs_to :field_setting
-
- validates :fieldable_id, presence: true
- validates :fieldable_type, presence: true
+ include Fields
+ include FieldUniqueness
end
end