ReadyResponder/ReadyResponder

View on GitHub
app/models/activity.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class Activity < ApplicationRecord
  # rails 5 deprecated this and recommends using strong parameters
  # attr_accessible :author, :content, :loggable_id, :loggable_type
  belongs_to :loggable, polymorphic: true
end