Module: ActiveResourceExtension

Included in:
Springnote::Base
Defined in:
lib/exts/active_resource_extension.rb

Instance Method Summary collapse

Instance Method Details

#find(*args) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/exts/active_resource_extension.rb', line 2

def find(*args)
  if multiple_query?(args)
    return super(:all, :params => { :identifiers => args.join(','), :detail => true })
  end

  scope   = args.slice!(0)
  options = convert_options(args.slice!(0) || {})
  super(scope, options)
            
# empty elements result causes error in typecast_xml_value because of xmlns of springnote
rescue RuntimeError
  []
end