Remove debugging code

pull/6827/head
friflaj 15 years ago
parent 58ae76c9f7
commit 0bd918f826
  1. 4
      app/controllers/stories_controller.rb
  2. 1
      app/controllers/tasks_controller.rb

@ -14,8 +14,6 @@ class StoriesController < ApplicationController
def create
attribs = params.select{|k,v| k != 'id' and Story.column_names.include? k }
logger.info '----------------------------------------'
logger.info (Hash[*attribs.flatten]).inspect
attribs = Hash[*attribs.flatten]
attribs['author_id'] = User.current.id
story = Story.new(attribs)
@ -34,8 +32,6 @@ class StoriesController < ApplicationController
def update
story = Story.find(params[:id])
attribs = params.select{|k,v| k != 'id' and Story.column_names.include? k }
logger.info '----------------------------------------'
logger.info (Hash[*attribs.flatten]).inspect
attribs = Hash[*attribs.flatten]
result = story.journalized_update_attributes! attribs
if result

@ -11,7 +11,6 @@ class TasksController < ApplicationController
def update
attribs = params.select{|k,v| k != 'id' and k != 'project_id' and Task.column_names.include? k }
attribs = Hash[*attribs.flatten]
RAILS_DEFAULT_LOGGER.info "@@@@ #{attribs.inspect}"
result = @task.journalized_update_attributes! attribs
if result
text = "Task updated successfully."

Loading…
Cancel
Save