Class: Vulgata::TranslationStateVersion
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Vulgata::TranslationStateVersion
- Includes:
- StatusTypes
- Defined in:
- app/models/vulgata/translation_state_version.rb
Instance Method Summary collapse
Instance Method Details
#status ⇒ Object
9 10 11 12 |
# File 'app/models/vulgata/translation_state_version.rb', line 9 def status s = super s = s.to_sym unless s.nil? end |
#translation_data ⇒ Object
14 15 16 17 |
# File 'app/models/vulgata/translation_state_version.rb', line 14 def translation_data td = super td = td.with_indifferent_access unless td.nil? end |
#translation_data=(value) ⇒ Object
19 20 21 22 |
# File 'app/models/vulgata/translation_state_version.rb', line 19 def translation_data=(value) td = value.nil? ? value : value.to_hash super td end |