Class: Workarea::Help::Asset

Inherits:
Object
  • Object
show all
Extended by:
Dragonfly::Model
Includes:
ApplicationDocument
Defined in:
app/models/workarea/help/asset.rb

Instance Method Summary collapse

Methods included from ApplicationDocument

#releasable?

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

#embedded_children

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

Returns:

  • (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