Skip to content

Commit

Permalink
Cache quoted position column.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdijk committed Aug 26, 2016
1 parent 3ef9657 commit 087f20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_list/active_record/acts/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def acts_as_list(options = {})
end

define_singleton_method :quoted_position_column do
connection.quote_column_name(configuration[:column])
@_quoted_position_column ||= connection.quote_column_name(configuration[:column])
end

define_singleton_method :quoted_position_column_with_table_name do
Expand Down

0 comments on commit 087f20f

Please sign in to comment.