diff --git a/app/models/concerns/viewable_model.rb b/app/models/concerns/viewable_model.rb index bfbb3afc0..731d7783c 100644 --- a/app/models/concerns/viewable_model.rb +++ b/app/models/concerns/viewable_model.rb @@ -15,11 +15,10 @@ module ViewableModel raise NotImplementedError, 'default_view_state should be implemented!' end - def validate_view_state(view_state) + def validate_view_state(_view_state) raise NotImplementedError, 'validate_view_state(view_state) should be implemented!' end - def current_view_state(user) state = view_states.where(user: user).take state || view_states.create!(user: user, state: default_view_state)