Class: Lolita::Translation::Record::AbstractRecord
- Inherits:
-
Object
- Object
- Lolita::Translation::Record::AbstractRecord
- Defined in:
- lib/lolita-translation/record.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#orm_record ⇒ Object
readonly
Returns the value of attribute orm_record.
Instance Method Summary collapse
- #association_key ⇒ Object
- #attribute(name) ⇒ Object
- #default_locale=(value) ⇒ Object
- #has_translation_for?(locale) ⇒ Boolean
-
#initialize(orm_record, configuration = nil) ⇒ AbstractRecord
constructor
A new instance of AbstractRecord.
- #locale ⇒ Object
- #new_record? ⇒ Boolean
- #translated_attribute(name, options = {}) ⇒ Object
Constructor Details
#initialize(orm_record, configuration = nil) ⇒ AbstractRecord
Returns a new instance of AbstractRecord.
12 13 14 15 |
# File 'lib/lolita-translation/record.rb', line 12 def initialize(orm_record,configuration = nil) @configuration = configuration @orm_record = orm_record end |
Instance Attribute Details
#orm_record ⇒ Object (readonly)
Returns the value of attribute orm_record.
10 11 12 |
# File 'lib/lolita-translation/record.rb', line 10 def orm_record @orm_record end |
Instance Method Details
#association_key ⇒ Object
37 38 39 |
# File 'lib/lolita-translation/record.rb', line 37 def association_key nil end |
#attribute(name) ⇒ Object
25 26 27 |
# File 'lib/lolita-translation/record.rb', line 25 def attribute name nil end |
#default_locale=(value) ⇒ Object
17 18 19 |
# File 'lib/lolita-translation/record.rb', line 17 def default_locale=(value) nil end |
#has_translation_for?(locale) ⇒ Boolean
41 42 43 |
# File 'lib/lolita-translation/record.rb', line 41 def has_translation_for?(locale) nil end |
#locale ⇒ Object
21 22 23 |
# File 'lib/lolita-translation/record.rb', line 21 def locale system_current_locale end |
#new_record? ⇒ Boolean
33 34 35 |
# File 'lib/lolita-translation/record.rb', line 33 def new_record? nil end |
#translated_attribute(name, options = {}) ⇒ Object
29 30 31 |
# File 'lib/lolita-translation/record.rb', line 29 def translated_attribute name, = {} nil end |