app/controllers/motor/ui_controller.rb in motor-admin-0.1.49 vs app/controllers/motor/ui_controller.rb in motor-admin-0.1.50

- old
+ new

@@ -5,17 +5,23 @@ layout 'motor/application' helper_method :current_user def index - Motor.reload! if Motor.development? + render_ui + end - Motor::Configs::SyncFromFile.call - - render :show + def new + render_ui end def show + render_ui + end + + private + + def render_ui Motor.reload! if Motor.development? Motor::Configs::SyncFromFile.call render :show