Skip to content

Commit

Permalink
Merge 7751b1b into d714f2c
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Mar 16, 2021
2 parents d714f2c + 7751b1b commit b1f984f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails/convert_active_record_dirty_5_0_to_5_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def call_after_create

within_files 'app/{models,observers}/**/*.rb' do
within_node type: 'class' do
object_name = node.name.to_source.underscore.gsub(/\//, '_').tableize
object_name = node.name.to_source.underscore.tr('/', '_').tableize

find_callbacks_and_convert(BEFORE_CALLBACK_NAMES, BEFORE_CALLBACK_CHANGES, object_attributes[object_name])
find_callbacks_and_convert(AFTER_CALLBACK_NAMES, AFTER_CALLBACK_CHANGES, object_attributes[object_name])
Expand Down

0 comments on commit b1f984f

Please sign in to comment.