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