Sha256: 8a40db1eacd4f3bad09760b2899f60ca81f0f29c135cec8ce12844267ab0120c

Contents?: true

Size: 261 Bytes

Versions: 10

Compression:

Stored size: 261 Bytes

Contents

class Post < ActiveRecord::Base
  include TheComments::Commentable

  belongs_to :user

  def commentable_title
    title
  end

  def commentable_url
    ['', self.class.to_s.tableize, id].join('/')
  end

  def commentable_state
    :published.to_s
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
fuck_comments-2.3.4 spec/dummy_app/app/models/post.rb
the_comments_ruby-2.3.4 spec/dummy_app/app/models/post.rb
the_comments_ruby-2.3.3 spec/dummy_app/app/models/post.rb
the_comments-2.3.1 spec/dummy_app/app/models/post.rb
the_comments-2.2.2 spec/dummy_app/app/models/post.rb
the_comments-2.2.1 spec/dummy_app/app/models/post.rb
the_comments-2.2.0 spec/dummy_app/app/models/post.rb
the_comments-2.1.0 spec/dummy_app/app/models/post.rb
the_comments-2.0.1 spec/dummy_app/app/models/post.rb
the_comments-2.0.0 spec/dummy_app/app/models/post.rb