-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small changes to DRY up list.rb #163
Conversation
acts_as_list_class.unscoped do | ||
acts_as_list_class.in_list.where(scope_condition).where(conditions).order("#{acts_as_list_class.table_name}.#{position_column} DESC").first | ||
end | ||
acts_as_list_list.in_list.where(conditions).order("#{acts_as_list_class.table_name}.#{position_column} DESC").first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [127/80]
acts_as_list_class.in_list.where(scope_condition).where(conditions).order("#{acts_as_list_class.table_name}.#{position_column} DESC").first | ||
end | ||
acts_as_list_list.in_list.where( | ||
conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent the first parameter one step more than the previous line.
Looks good to me. @brendon : Any thoughts? |
Yep, looks good to me too :) Well done. SO DRY :) |
Small changes to DRY up list.rb
Did a few small changes to reuse already implemented convenience methods.