Class: PhrasingPhraseVersion

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/phrasing_phrase_version.rb

Class Method Summary collapse

Class Method Details

.create_version(phrasing_phrase_id, value) ⇒ Object



4
5
6
7
8
9
# File 'app/models/phrasing_phrase_version.rb', line 4

def self.create_version(phrasing_phrase_id, value)
  phrasing_phrase_version = PhrasingPhraseVersion.new
  phrasing_phrase_version.phrasing_phrase_id = phrasing_phrase_id
  phrasing_phrase_version.value = value
  phrasing_phrase_version.save
end