Skip to content

Commit

Permalink
Remove attribute_name_for
Browse files Browse the repository at this point in the history
This hasn't been used since 2012, and was only ever used by other helper
methods (probably why it was private, though that doesn't really
restrict usage).
  • Loading branch information
jhawthorn committed Jan 18, 2018
1 parent b0d3e68 commit ed2f32c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions backend/app/helpers/spree/admin/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ def admin_layout(layout = nil)
@admin_layout = layout if layout
@admin_layout
end

private

def attribute_name_for(field_name)
field_name.tr(' ', '_').downcase
end
end
end
end

0 comments on commit ed2f32c

Please sign in to comment.