Module: RevisionStatements

Included in:
Resource
Defined in:
backend/app/model/mixins/revision_statements.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'backend/app/model/mixins/revision_statements.rb', line 3

def self.included(base)
  base.one_to_many(:revision_statement)

  base.def_nested_record(:the_property => :revision_statements,
                         :contains_records_of_type => :revision_statement,
                         :corresponding_to_association  => :revision_statement)
end