Remove commented out code

This commit is contained in:
Eric Schultz 2021-02-17 16:56:47 -06:00 committed by Eric Schultz
parent 0313b27b2e
commit 6fd2ca346a

View file

@ -176,29 +176,6 @@ class Supporter < ApplicationRecord
end end
end end
end end
# def new_builder(*expand)
# Jbuilder.new do | json|
# expandable_builders.keys.each do |k|
# if expand.include? k
# json.set! expandable_builders[k][:json_attrib], expandable_builders[k][:expanded].call(self)
# else
# json.set! expandable_builders[k][:json_attrib], expandable_builders[k][:id].call(self)
# end
# end
# yield(json)
# end
# end
# def expandable_builders
# {
# nonprofit: {
# json_attrib: :nonprofit,
# id: ->(model) { model.nonprofit.id},
# expanded: ->(model) { model.nonprofit.to_builder }
# }
# }
# end
end end
ActiveSupport.run_load_hooks(:houdini_supporter, Supporter) ActiveSupport.run_load_hooks(:houdini_supporter, Supporter)