Class: Highrise::SubjectField
- Defined in:
- lib/highrise/subject_field.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}, persisted = false) ⇒ SubjectField
constructor
A new instance of SubjectField.
Methods inherited from Base
Constructor Details
#initialize(attributes = {}, persisted = false) ⇒ SubjectField
Returns a new instance of SubjectField.
4 5 6 7 |
# File 'lib/highrise/subject_field.rb', line 4 def initialize(attributes = {}, persisted = false) super @use_cache = false end |
Class Method Details
.find_every(options) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/highrise/subject_field.rb', line 13 def self.find_every() if @use_cache @subject_field_cache ||= super else super end end |
.invalidate_cache ⇒ Object
21 22 23 |
# File 'lib/highrise/subject_field.rb', line 21 def self.invalidate_cache @subject_field_cache = nil end |
.use_cache(use_cache = true) ⇒ Object
9 10 11 |
# File 'lib/highrise/subject_field.rb', line 9 def self.use_cache(use_cache = true) @use_cache = use_cache end |