SandBox - hamamatsu-rb/hamamatsu-rb.github.com GitHub Wiki

ここは自由にテストできるページです。


puts("Hello, World")

コード片

def find(*args)
  options = args.extract_options!
  validate_find_options(options)
  set_readonly_options!(options)
  case args.first
    when :first then find_initial(options)
    when :last  then find_last(options)
    when :all   then find_every(options)
    else             find_from _ids(args, options)
  end
end