Sha256: 40d14c016baa15a7a667a7f1b1cb975479a51a9c4145afa59b9ce367c02e322e

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

class User < ActiveRecord::Base
  super_list :gender, 'Gender'
  super_list :gender1, 'Gender', :allow_blank => false, :use_i18n => true
  super_list :gender2, 'Gender', :use_i18n => true, :i18n_default => '未知'
  super_list :gender3, 'Gender', :use_i18n => true, :i18n_default => '未知', :no_validation => true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
super_list-1.4.2 test/dummy/app/models/user.rb
super_list-1.4.1 test/dummy/app/models/user.rb
super_list-1.4.0 test/dummy/app/models/user.rb
super_list-1.3.0 test/dummy/app/models/user.rb
super_list-1.2.1 test/dummy/app/models/user.rb