Sha256: 222684bea2cfe99ac139f19fac743a7eb5b0224cccc1a81ad61f354d31c32c63

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

module Merit
  class ActivityLog < ActiveRecord::Base
    self.table_name = :merit_activity_logs

    belongs_to :action, class_name: 'Merit::Action'
    belongs_to :related_change, polymorphic: true, optional: true
    has_one :sash, through: :related_change

    if show_attr_accessible?
      attr_accessible :action_id, :related_change, :description, :created_at
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merit-3.0.2 lib/merit/models/active_record/merit/activity_log.rb