Skip to content

Commit

Permalink
Merge 1104bf6 into f38f98c
Browse files Browse the repository at this point in the history
  • Loading branch information
emaraschio committed Jan 12, 2018
2 parents f38f98c + 1104bf6 commit 5c2f419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/refinery/crud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def self.default_options(model_name)
{
:conditions => '',
:include => [],
:order => ('position ASC' if this_class.table_exists? && this_class.column_names.include?('position')),
:order => ('position ASC' if this_class.connected? && this_class.table_exists? && this_class.column_names.include?('position')),
:paging => true,
:per_page => false,
:redirect_to_url => "refinery.#{Refinery.route_for_model(class_name.constantize, :plural => true)}",
Expand Down

0 comments on commit 5c2f419

Please sign in to comment.