Added Rails/Delegate Rubucop Cop

This commit is contained in:
divyanshumehta 2017-05-21 21:02:30 +05:30
parent fa56ff7f6d
commit 4824537aeb
3 changed files with 5 additions and 9 deletions

View file

@ -3,7 +3,5 @@ class SpeakerSerializer < ActiveModel::Serializer
attributes :name, :affiliation, :biography
def name
object.name
end
delegate :name, to: :object
end