Sha256: 4e267bc26af76a86b0cfd05db54c17dcc268b090a0911d997623e6fbd5407b09

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

class CamelCase
  include Dynamoid::Document

  field :color

  belongs_to :magazine
  has_many :users
  has_one :sponsor
  has_and_belongs_to_many :subscriptions
  
  before_create :doing_before_create
  after_create :doing_after_create
  before_update :doing_before_update
  after_update :doing_after_update
  
  private
  
  def doing_before_create
    true
  end
  
  def doing_after_create
    true
  end

  def doing_before_update
    true
  end

  def doing_after_update
    true
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
dynamoid-moda-0.7.2 spec/app/models/camel_case.rb
dynamoid-moda-0.7.1 spec/app/models/camel_case.rb
dynamoid-0.7.1 spec/app/models/camel_case.rb
dynamoid-0.7.0 spec/app/models/camel_case.rb