Skip to content

Commit

Permalink
Merge pull request #207 from shunwen/master
Browse files Browse the repository at this point in the history
Removed duplicated assignment
  • Loading branch information
brendon committed May 31, 2016
2 parents 7753978 + d3ea2a3 commit cf26784
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/acts_as_list/active_record/acts/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ def bottom_position_in_list(except = nil)

# Returns the bottom item
def bottom_item(except = nil)
conditions = scope_condition
conditions = except ? "#{self.class.primary_key} != #{self.class.connection.quote(except.id)}" : {}
acts_as_list_list.in_list.where(
conditions
Expand Down

0 comments on commit cf26784

Please sign in to comment.