mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Fix code formatting [SCI-3436]
This commit is contained in:
parent
ae1a63037b
commit
f2b617ac12
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue