module Syrup::Form::Wrapped

Public Class Methods

method_missing(*params) click to toggle source
# File lib/syrup/form/wrapped.rb, line 9
def self.method_missing(*params)
  @wrapped_class.send *params
end
model_name() click to toggle source
# File lib/syrup/form/wrapped.rb, line 17
def self.model_name
  @wrapped_class.model_name
end
respond_to?(*params) click to toggle source
Calls superclass method
# File lib/syrup/form/wrapped.rb, line 13
def self.respond_to?(*params)
  super || @wrapped_class.respond_to?(*params)
end

Public Instance Methods

find_relations(params) click to toggle source
Calls superclass method
# File lib/syrup/form/wrapped.rb, line 31
def find_relations(params)
  if params.is_a?(Hash)
    super(params)
  else
    self.wrapped= self.wrapped.class.find(params)
  end
end
method_missing(*params) click to toggle source
# File lib/syrup/form/wrapped.rb, line 23
def method_missing(*params)
  wrapped.send *params
end
new_record?() click to toggle source
# File lib/syrup/form/wrapped.rb, line 43
def new_record?
  wrapped.new_record?
end
persisted?() click to toggle source
# File lib/syrup/form/wrapped.rb, line 47
def persisted?
  wrapped.persisted?
end
respond_to?(*params) click to toggle source
Calls superclass method
# File lib/syrup/form/wrapped.rb, line 27
def respond_to?(*params)
  super || wrapped.respond_to?(*params)
end
wrapped?() click to toggle source
# File lib/syrup/form/wrapped.rb, line 39
def wrapped?
  true
end