Added Rails/Delegate Rubucop Cop
This commit is contained in:
parent
fa56ff7f6d
commit
4824537aeb
3 changed files with 5 additions and 9 deletions
|
|
@ -3,7 +3,5 @@ class SpeakerSerializer < ActiveModel::Serializer
|
|||
|
||||
attributes :name, :affiliation, :biography
|
||||
|
||||
def name
|
||||
object.name
|
||||
end
|
||||
delegate :name, to: :object
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue