remove unnecessary find module_app
This commit is contained in:
parent
5c35c42ed3
commit
0b86a3b205
|
@ -379,10 +379,6 @@ class Admin::RulingTimersController < OrbitMemberController
|
|||
redirect_to settings_admin_ruling_timers_path and return
|
||||
end
|
||||
def set_setting
|
||||
@module_app = ModuleApp.where(:key=>@app_title).first
|
||||
if @module_app.nil?
|
||||
@module_app = OrbitMemberModule.where(:key=>@app_title).first
|
||||
end
|
||||
@setting = RulingTimerSetting.first
|
||||
if @setting.nil?
|
||||
@setting = RulingTimerSetting.create
|
||||
|
|
Loading…
Reference in New Issue