Method: C2::Informant::Locus#as_json
- Defined in:
- app/models/c2/informant/locus.rb
#as_json(options = {}) ⇒ Object
103 104 105 106 107 108 |
# File 'app/models/c2/informant/locus.rb', line 103 def as_json(={}) cleaned = super(( || {}).merge({ :methods => [:count, :buckets, :label, :singular_label, :entry_label, :entries_page, :entry_form_builder] })).map {|k,v| [k.to_s, (v.is_a?(Numeric) ? v.to_s : v)]} Hash[cleaned] end |