summaryrefslogtreecommitdiff
path: root/app/models/tutorial.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-01 23:32:33 -0700
committermo khan <mo@mokhan.ca>2013-07-01 23:32:33 -0700
commitc50b9d50ed9f0dfb10d945ebff12fe7801dcbe9d (patch)
treecfaf1c14819783e20d59a3089400e51b541ac90b /app/models/tutorial.rb
parentbffcbe1072642420f53ef9a8020655c4d62b15bf (diff)
fix broken specs
Diffstat (limited to 'app/models/tutorial.rb')
-rw-r--r--app/models/tutorial.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tutorial.rb b/app/models/tutorial.rb
index 95641fb2..3d6cae9a 100644
--- a/app/models/tutorial.rb
+++ b/app/models/tutorial.rb
@@ -1,6 +1,6 @@
class Tutorial < ActiveRecord::Base
include PublicActivity::Model
- tracked owner: Proc.new{ |controller, model| controller.current_user }
+ tracked owner: Proc.new{ |controller, model| controller.current_user if controller }
attr_accessible :description, :heading, :url, :image_url, :user_id, :author, :author_url
validates :url, :presence => true
belongs_to :user