Sha256: bb4b4c8d1990ef83febce54db969a2ee74fe115b877f8ec47b55b9600a2e212b

Contents?: true

Size: 261 Bytes

Versions: 7

Compression:

Stored size: 261 Bytes

Contents

module TaskManager
  class Assignable < ActiveRecord::Base
    belongs_to :target, polymorphic: true
    belongs_to :assignee, polymorphic: true

    validates_presence_of :assignee_id, :assignee_type

    attr_accessible :assignee_id, :assignee_type
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
task-manager-0.1.7 app/models/task_manager/assignable.rb
task-manager-0.1.6 app/models/task_manager/assignable.rb
task-manager-0.1.5 app/models/task_manager/assignable.rb
task-manager-0.1.4 app/models/task_manager/assignable.rb
task-manager-0.1.3 app/models/task_manager/assignable.rb
task-manager-0.1.2 app/models/task_manager/assignable.rb
task-manager-0.1.1 app/models/task_manager/assignable.rb