Created
July 16, 2011 19:19
-
-
Save FabricioFFC/1086656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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