Class: Blogy::Post::Translation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Blogy::Post::Translation
- Extended by:
- Enumerize
- Defined in:
- app/models/blogy/post/translation.rb
Instance Method Summary collapse
Instance Method Details
#content ⇒ Object
9 10 11 |
# File 'app/models/blogy/post/translation.rb', line 9 def content formated end |
#formated ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/models/blogy/post/translation.rb', line 13 def formated case format.to_sym when :plain, :html value when :markdown markdown end end |
#value ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/blogy/post/translation.rb', line 22 def value case storage.to_sym when :text text when :document # TODO # document.file.read if document? when :remote open(remote).read if remote? end end |