Class: Ixtlan::Models::Word
- Inherits:
-
Object
- Object
- Ixtlan::Models::Word
show all
- Includes:
- I18nText
- Defined in:
- lib/ixtlan/models/word.rb
Constant Summary
Constants included
from I18nText
I18nText::TEXT_LOCALE
Instance Method Summary
collapse
Methods included from I18nText
#approve, #approved?, #cascade, included, #invariant
Instance Method Details
#to_x ⇒ Object
8
|
# File 'lib/ixtlan/models/word.rb', line 8
alias :to_x :to_xml_document
|
#to_xml_document(opts, doc = nil) ⇒ Object
9
10
11
12
|
# File 'lib/ixtlan/models/word.rb', line 9
def to_xml_document(opts, doc = nil)
opts.merge!({:element_name => "word", :exclude => [:id, :locale_id, :current, :previous, :updated_at, :approved_at, :updated_by_id, :approved_by_id, :version]})
to_x(opts, doc)
end
|