diff options
| author | mo khan <mo@mokhan.ca> | 2014-10-28 21:18:56 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-10-28 21:18:56 -0600 |
| commit | f0c3cb75eeb533c4ea15843e47994815cd9213d2 (patch) | |
| tree | 8a2d9b2e5bd70560b0e9659a5d4f91ad7b928234 /app/models | |
| parent | d7c6179e36633428ff1ebf161f9132afa2c9c5b2 (diff) | |
specify tag context.
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/creation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/creation.rb b/app/models/creation.rb index 4ebe67b0..901e2db1 100644 --- a/app/models/creation.rb +++ b/app/models/creation.rb @@ -6,7 +6,7 @@ class Creation < ActiveRecord::Base has_many :photos, -> { order :created_at }, dependent: :destroy, as: :imageable has_many :favorites, :dependent => :destroy has_many :comments, dependent: :destroy - acts_as_taggable + acts_as_taggable_on :tags alias_method :author, :user default_scope -> { order(created_at: :desc) } |
