Module: Serega::SeregaPlugins::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
106 107 108 109 110 111 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 106 def hide res = super return res unless res.nil? auto_hide_attribute_with_preloads? || nil end |
#preloads ⇒ Object
94 95 96 97 98 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 94 def preloads return @preloads if defined?(@preloads) @preloads = get_preloads end |
#preloads_path ⇒ Object
100 101 102 103 104 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 100 def preloads_path return @preloads_path if defined?(@preloads_path) @preloads_path = get_preloads_path end |