class ActiveAdminAddons::NumberBuilder
Constants
- NUMBER_TYPES
Public Instance Methods
render()
click to toggle source
# File lib/activeadmin_addons/addons/number_builder.rb, line 13 def render options[:as] = options.fetch(:as, :delimiter) if !NUMBER_TYPES.keys.include?(options[:as]) raise "Invalid number type. Options are: #{NUMBER_TYPES.keys}" end context.send(NUMBER_TYPES[options[:as]], data, options) end