fixed small typos
This commit is contained in:
parent
4d8270b84f
commit
a8849b9183
3 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue