Module: Proposal

Included in:
ReleasableCandidate, ReleasableCandidateItem
Defined in:
lib/act_as_releasable/models.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



5
6
7
8
9
10
# File 'lib/act_as_releasable/models.rb', line 5

def self.included(receiver)
  receiver.belongs_to :item, :polymorphic => true
  receiver.validates_presence_of :item_id, :item_type, :candidate_data

  receiver.send :include, InstanceMethods
end