module NxtSupport::IndifferentlyAccessibleJsonAttrs

Public Instance Methods

indifferently_accessible_json_attrs(*attrs) click to toggle source
# File lib/nxt_support/models/indifferently_accessible_json_attrs.rb, line 32
def indifferently_accessible_json_attrs(*attrs)
  attrs.each do |attr|
    serialize attr, JsonSerializer
  end
end