Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Fix default_scope lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvarado committed Dec 30, 2015
1 parent bb43571 commit e0a91a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DashboardElement < ActiveRecord::Base
include ActionView::Helpers::TextHelper
include ActionView::Helpers::TextHelper

belongs_to :dashboard
belongs_to :survey_element
Expand All @@ -9,7 +9,7 @@ class DashboardElement < ActiveRecord::Base
include RankedModel
ranks :sort_order, :with_same => :dashboard_id

default_scope order(:sort_order)
default_scope { order(:sort_order) }

# dashboard element types
DISPLAY_TYPES = {
Expand Down

0 comments on commit e0a91a7

Please sign in to comment.