Sha256: 47c46b6d5f2458af2a0d82fc93075fd1c8986df6e461490fd8eb9f9b4d1eb8c9

Contents?: true

Size: 1.53 KB

Versions: 6

Compression:

Stored size: 1.53 KB

Contents

if Gaku::Preset.count.zero?
  Gaku::Preset.create!(
                        name: 'Default',
                        default: true,
                        active: true,
                        locale: 'en',
                        time_format_24: true,
                        names_order: '%first %middle %last',
                        pagination: { default: 25,
                                      students: 25,
                                      teachers: 25,
                                      changes: 25 },
                        person: { gender: true },
                        student: { id_code: '%year-%yearly_serial', increment_foreign_id_code: 1 },
                        address: { country: 'JP', state: 'Aichi', city: 'Nagoya' },
                        grading: { scheme: '', method: '' },
                        export_formats: { spreadsheets: 'xls', printables: 'pdf', documents: 'xls' },

                        chooser_fields: { show_name: 1,
                                          show_surname: 1,
                                          show_birth_date: 1,
                                          show_gender: 1,
                                          show_code: 1,
                                          show_class_name: 1,
                                          show_admitted: 1,
                                          show_primary_address: 1,
                                          show_primary_contact: 1,
                                          show_personal_information: 1 }
                      )
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku-0.2.2 core/db/default/gaku/presets.rb
gaku_core-0.2.2 db/default/gaku/presets.rb
gaku-0.2.1 core/db/default/gaku/presets.rb
gaku_core-0.2.1 db/default/gaku/presets.rb
gaku-0.2.0 core/db/default/gaku/presets.rb
gaku_core-0.2.0 db/default/gaku/presets.rb