Class: Workarea::Help::Asset
- Inherits:
-
Object
- Object
- Workarea::Help::Asset
- Extended by:
- Dragonfly::Model
- Includes:
- ApplicationDocument
- Defined in:
- app/models/workarea/help/asset.rb
Instance Method Summary collapse
- #method_missing(sym, *args, &block) ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Methods included from ApplicationDocument
Methods included from Sidekiq::Callbacks
add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list
Methods included from Mongoid::Document
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/models/workarea/help/asset.rb', line 17 def method_missing(sym, *args, &block) if file.respond_to?(sym) file.send(sym, *args, &block) else super end end |
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
13 14 15 |
# File 'app/models/workarea/help/asset.rb', line 13 def respond_to_missing?(method_name, include_private = false) super || file.respond_to?(method_name) end |