module StaticModel::Shortcut::ClassMethods

Public Instance Methods

method_missing(method_sym, *arguments, &block) click to toggle source
Calls superclass method
# File lib/static_model/shortcut.rb, line 8
def method_missing(method_sym, *arguments, &block)
  if exists?(method_sym.to_s)
    find(method_sym.to_s)
  else
    super
  end
end
respond_to?(method_sym, include_private = false) click to toggle source
Calls superclass method
# File lib/static_model/shortcut.rb, line 16
def respond_to?(method_sym, include_private = false)
  exists?(method_sym.to_s) || super
end