Fix code formatting [SCI-3436]

This commit is contained in:
Oleksii Kriuchykhin 2019-06-19 14:23:12 +02:00
parent ae1a63037b
commit f2b617ac12

View file

@ -15,11 +15,10 @@ module ViewableModel
raise NotImplementedError, 'default_view_state should be implemented!' raise NotImplementedError, 'default_view_state should be implemented!'
end end
def validate_view_state(view_state) def validate_view_state(_view_state)
raise NotImplementedError, 'validate_view_state(view_state) should be implemented!' raise NotImplementedError, 'validate_view_state(view_state) should be implemented!'
end end
def current_view_state(user) def current_view_state(user)
state = view_states.where(user: user).take state = view_states.where(user: user).take
state || view_states.create!(user: user, state: default_view_state) state || view_states.create!(user: user, state: default_view_state)