Method: Positionable::InstanceMethods#last?

Defined in:
lib/positionable.rb

#last?(list_name = :default) ⇒ Boolean

True if the record is the last in the list.

Returns:

  • (Boolean)


172
173
174
# File 'lib/positionable.rb', line 172

def last?(list_name = :default)
  in_list? && list_position == bottom_position_in_list(list_name)
end