app/models/inkwell/comment.rb in inkwell-1.5.2 vs app/models/inkwell/comment.rb in inkwell-2.0.0

- old
+ new

@@ -2,11 +2,10 @@ class Comment < ActiveRecord::Base require_relative '../../../lib/common/base.rb' include ::Inkwell::Constants include ::Inkwell::Common - attr_accessible :body, :parent_comment_id, :topmost_obj_id, :topmost_obj_type attr_accessor :is_reblogged attr_accessor :is_favorited attr_accessor :item_id_in_line attr_accessor :is_reblog_in_blogline attr_accessor :from_sources_in_timeline @@ -15,10 +14,10 @@ validates :body, :presence => true after_create :processing_a_comment before_destroy :destroy_comment_processing - belongs_to ::Inkwell::Engine::config.user_table.to_s.singularize + belongs_to ::Inkwell::Engine::config.user_table.to_s.singularize.to_sym def commentline(options = {}) options.symbolize_keys! last_shown_comment_id = options[:last_shown_comment_id] limit = options[:limit] || 10