Method: ActsAsList::InstanceMethods#last?
- Defined in:
- lib/acts_as_list.rb
#last? ⇒ Boolean
Return true if this object is the last in the list.
147 148 149 150 |
# File 'lib/acts_as_list.rb', line 147 def last? return false unless in_list? self.send(position_column) == bottom_position_in_list end |