Module: Homeschool::StandardizedTest::RailsExtentions::InstanceMethods

Defined in:
lib/standardized_test.rb

Instance Method Summary collapse

Instance Method Details

#last(sym) ⇒ Object

last(:person)



84
85
86
# File 'lib/standardized_test.rb', line 84

def last(sym)
  sym.to_s.classify.constantize.find(:first, :order => 'id DESC')
end