app/controllers/topic_types_controller.rb
Do not prefix writer method names with set_
. Open
Open
def set_ancestory(topic_type)
- Read upRead up
- Exclude checks
This cop makes sure that accessor methods are named properly.
Example:
# bad
def set_attribute(value)
end
# good
def attribute=(value)
end
# bad
def get_attribute
end
# good
def attribute
end