From a8849b9183efe09fd5569e10441c7de350fe023f Mon Sep 17 00:00:00 2001 From: Johannes Nickel Date: Thu, 30 May 2013 10:24:09 +0200 Subject: [PATCH] fixed small typos --- app/controllers/taskbar_controller.rb | 2 +- app/models/taskbar.rb | 7 ++++--- ...43_task_manager_states.rb => 20130529124443_taskbar.rb} | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) rename db/migrate/{20130529124443_task_manager_states.rb => 20130529124443_taskbar.rb} (89%) diff --git a/app/controllers/taskbar_controller.rb b/app/controllers/taskbar_controller.rb index 7f77c9030..b71796547 100644 --- a/app/controllers/taskbar_controller.rb +++ b/app/controllers/taskbar_controller.rb @@ -22,7 +22,7 @@ class TaskbarController < ApplicationController def create params[:user_id] = current_user.id - model_create_render(taskbar,params) + model_create_render(Taskbar,params) end diff --git a/app/models/taskbar.rb b/app/models/taskbar.rb index e0c4226c6..9fca405a1 100644 --- a/app/models/taskbar.rb +++ b/app/models/taskbar.rb @@ -1,8 +1,9 @@ class Taskbar < ApplicationModel -store :state, :params -before_create :update_time -before_update :update_time +store :state +store :params +before_create :update_last_contact +before_update :update_last_contact private def update_last_contact diff --git a/db/migrate/20130529124443_task_manager_states.rb b/db/migrate/20130529124443_taskbar.rb similarity index 89% rename from db/migrate/20130529124443_task_manager_states.rb rename to db/migrate/20130529124443_taskbar.rb index 994bfe34c..5d897780d 100644 --- a/db/migrate/20130529124443_task_manager_states.rb +++ b/db/migrate/20130529124443_taskbar.rb @@ -1,4 +1,4 @@ -class TaskManagerStates < ActiveRecord::Migration +class Taskbar < ActiveRecord::Migration def up create_table :taskbars do |t| t.column :user_id, :integer, :null => false