Class: Flexite::Flexy

Inherits:
Object
  • Object
show all
Defined in:
lib/flexite/flexy.rb

Class Method Summary collapse

Class Method Details

.method_missing(name, *args, &block) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/flexite/flexy.rb', line 3

def self.method_missing(name, *args, &block)
  if Flexite.cached_nodes.present?
    Flexite.cached_nodes.send(name, *args, &block)
  elsif block_given?
    yield
  else
    super
  end
end