1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix rubocop violations

This commit is contained in:
yuuji.yaginuma 2017-04-12 07:41:59 +09:00
parent afb41fbefa
commit fb9e846be9
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ module ActionView
node node
end end
else else
unless name.include?('#') # Dynamic template partial names can never be tracked unless name.include?("#") # Dynamic template partial names can never be tracked
logger.error " Couldn't find template for digesting: #{name}" logger.error " Couldn't find template for digesting: #{name}"
end end

View file

@ -150,7 +150,7 @@ module Rails
end end
def field_id(attribute_name) def field_id(attribute_name)
[singular_table_name, attribute_name].join('_') [singular_table_name, attribute_name].join("_")
end end
def singular_table_name # :doc: def singular_table_name # :doc: