reverting the team changes, the scope is not needed

This commit is contained in:
Miha Mencin 2019-03-01 17:48:38 +01:00
parent 844303ae7c
commit 2ba040980f

View file

@ -41,8 +41,6 @@ class Team < ApplicationRecord
attr_accessor :without_intro_demo
after_create :generate_intro_demo
scope :without_templates, -> { includes(:projects).where("projects.template": nil) }
def default_view_state
{ 'projects' =>
{ 'cards' => { 'sort' => 'new' },