Sha256: 48c658affd1aeb5d8da11fde8e9bfa5640e972d5f9ecf93825b734c494365e00
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
# frozen_string_literal: true module BestBoy class Event < ActiveRecord::Base include BestBoy::ObeysTestMode # db configuration # # self.table_name = "best_boy_events" # associations # # belongs_to :owner, polymorphic: true # validations # # validates :event, presence: true # scopes # # scope :per_day, ->(date) { where(created_at: date.beginning_of_day..date.end_of_day ) } end end
Version data entries
5 entries across 5 versions & 1 rubygems