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

Version Path
rails_execution-0.1.12 lib/rails_execution/app_model.rb
rails_execution-0.1.11 lib/rails_execution/app_model.rb
rails_execution-0.1.10 lib/rails_execution/app_model.rb
rails_execution-0.1.9 lib/rails_execution/app_model.rb
rails_execution-0.1.8 lib/rails_execution/app_model.rb
rails_execution-0.1.7 lib/rails_execution/app_model.rb
rails_execution-0.1.5 lib/rails_execution/app_model.rb
rails_execution-0.1.4 lib/rails_execution/app_model.rb
rails_execution-0.1.2 lib/rails_execution/app_model.rb
rails_execution-0.1.1 lib/rails_execution/app_model.rb