jackdempsey / acts_as_commentable

The ActiveRecord acts_as_commentable plugin
http://juixe.com/svn/acts_as_commentable/
MIT License
834 stars 178 forks source link

Fix rubocop violations in generated comment.rb #60

Closed swrobel closed 4 years ago

swrobel commented 9 years ago

Previous rubocop output:

Offenses:

app/models/comment.rb:2:1: C: Extra empty line detected at class body beginning.
app/models/comment.rb:5:28: C: Use the new Ruby 1.9 hash syntax.
  belongs_to :commentable, :polymorphic => true
                           ^^^^^^^^^^^^^^^
app/models/comment.rb:7:17: C: default_scope expects a block as its sole argument.
  default_scope -> { order('created_at ASC') }
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app/models/comment.rb:11:3: C: Missing space after #.
  #acts_as_voteable
  ^^^^^^^^^^^^^^^^^