Sha256: 02affcedb8de1dab631199a428cf02a368589eb5dcb8f960d1a4279ff2f476cb

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

module Trade
  module Model::CardLog
    extend ActiveSupport::Concern

    included do
      attribute :title, :string
      attribute :tag_str, :string
      attribute :amount, :decimal

      belongs_to :card
      belongs_to :source, polymorphic: true, optional: true

      default_scope -> { order(id: :desc) }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/models/trade/model/card_log.rb