diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-01 23:32:33 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-01 23:32:33 -0700 |
| commit | c50b9d50ed9f0dfb10d945ebff12fe7801dcbe9d (patch) | |
| tree | cfaf1c14819783e20d59a3089400e51b541ac90b /app/models/tutorial.rb | |
| parent | bffcbe1072642420f53ef9a8020655c4d62b15bf (diff) | |
fix broken specs
Diffstat (limited to 'app/models/tutorial.rb')
| -rw-r--r-- | app/models/tutorial.rb | 2 |
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 |
