diff options
| author | mo khan <mo@mokhan.ca> | 2013-11-30 20:06:02 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-11-30 20:06:02 -0700 |
| commit | 20ac5a5c02b2cd682e372a69e5c54326eecc638c (patch) | |
| tree | 5e23ed9d7379bfcd02e53f452887722cc06edbb0 /app/models/tutorial.rb | |
| parent | 26712257d11b7a0692df096b543f81e625584f8f (diff) | |
remove comments.
Diffstat (limited to 'app/models/tutorial.rb')
| -rw-r--r-- | app/models/tutorial.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/models/tutorial.rb b/app/models/tutorial.rb index 4b9f498a..4e6456e5 100644 --- a/app/models/tutorial.rb +++ b/app/models/tutorial.rb @@ -1,11 +1,8 @@ class Tutorial < ActiveRecord::Base - #attr_accessible :description, :heading, :url, :image_url, :user_id, :author, :author_url validates :url, :presence => true belongs_to :user acts_as_taggable - #default_scope -> { order("created_at DESC") } - def to_param "#{id}-#{heading.gsub(/[^a-z0-9]+/i, '-')}" end |
