Module: Serega::Plugins::Preloads::AttributeMethods
- Defined in:
- lib/serega/plugins/preloads/preloads.rb
Overview
Adds #preloads and #preloads_path Attribute instance method
Instance Method Summary collapse
Instance Method Details
#hide ⇒ Object
66 67 68 69 70 71 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 66 def hide res = super return res unless res.nil? auto_hide_attribute_with_preloads? || nil end |
#preloads ⇒ Object
54 55 56 57 58 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 54 def preloads return @preloads if defined?(@preloads) @preloads = get_preloads end |
#preloads_path ⇒ Object
60 61 62 63 64 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 60 def preloads_path return @preloads_path if defined?(@preloads_path) @preloads_path = get_preloads_path end |