moneybird / active-date-range

Powerful DateRanges for Ruby and ActiveSupport
MIT License
51 stars 0 forks source link

ActiveModel type support #3

Closed edwinv closed 3 years ago

edwinv commented 3 years ago

Registers a ActiveModel type for date range, so it can be used as an attribute:

class Report
  include ActiveModel::Attributes

  attribute :period, :date_range
end