configures act_as_taggable [#8]

This commit is contained in:
rgarcia
2015-07-18 17:23:00 +02:00
parent 1f725a2c51
commit 6adedf45b8
7 changed files with 62 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
class Debate < ActiveRecord::Base
acts_as_taggable
belongs_to :author, class_name: 'User', foreign_key: 'author_id'
validates :title, presence: true