mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
enable style/dotposition rubocop cop
This commit is contained in:
parent
29650beddb
commit
03fa299058
25 changed files with 143 additions and 142 deletions
|
|
@ -412,10 +412,10 @@ module ApplicationHelper
|
|||
# Eg: If version.changeset = '{"title"=>[nil, "Premium"], "description"=>[nil, "Premium = Super cool"], "conference_id"=>[nil, 3]}'
|
||||
# Output will be 'title, description and conference'
|
||||
def updated_attributes(version)
|
||||
version.changeset.
|
||||
reject{ |_, values| values[0].blank? && values[1].blank? }.
|
||||
keys.map{ |key| key.gsub('_id', '').tr('_', ' ')}.join(', ').
|
||||
reverse.sub(',', ' dna ').reverse
|
||||
version.changeset
|
||||
.reject{ |_, values| values[0].blank? && values[1].blank? }
|
||||
.keys.map{ |key| key.gsub('_id', '').tr('_', ' ')}.join(', ')
|
||||
.reverse.sub(',', ' dna ').reverse
|
||||
end
|
||||
|
||||
def link_to_user(user_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue