Skip to content

Instantly share code, notes, and snippets.

@FabricioFFC
Created July 16, 2011 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FabricioFFC/1086656 to your computer and use it in GitHub Desktop.
Save FabricioFFC/1086656 to your computer and use it in GitHub Desktop.
class Client < ActiveRecord::Base
LIST_FIELDS = [:code, :corporate_name, :phone, :email]
rails_admin do
label "#{I18n.t('client.menu_name')}"
LIST_FIELDS.each do |f|
list do
field f
end
end
edit do
field :prospecting, :enum do
enum do
[['ativa', 0], ['passiva',1]]
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment