Sha256: 35a71948654e5d2019eccee4645d71604515fbdd53c6f1fadb871472782a4c89
Contents?: true
Size: 324 Bytes
Versions: 10
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true model_klass = defined?(ApplicationRecord) ? ApplicationRecord : ActiveRecord::Base class RailsExecution::AppModel < model_klass self.abstract_class = true belongs_to :owner, polymorphic: true scope :descending, -> { order(id: :desc) } scope :ascending, -> { order(id: :asc) } end
Version data entries
10 entries across 10 versions & 1 rubygems