Add functionality for School/Department for an organisation.
Changes: - added a Department model whose instances belong to an org and require name. - added a DepartmentController and views for create, edit/update and a index view which is a tab of 'Organisational Details'. - added the optional attribute department_id to User model. - added Rspec tests. - updated app/controllers/registrations_controller.rb, app/models/org.rb and app/models/user.rb to get rid of outstanding Rubocop warnings Fix for issue #2088. |
---|
|
Gemfile.lock |
---|
app/controllers/org_admin/departments_controller.rb 0 → 100644 |
---|
app/controllers/paginable/departments_controller.rb 0 → 100644 |
---|
app/controllers/paginable/guidances_controller.rb |
---|
app/controllers/registrations_controller.rb |
---|
app/models/department.rb 0 → 100644 |
---|
app/models/org.rb |
---|
app/models/user.rb |
---|
app/policies/department_policy.rb 0 → 100644 |
---|
app/views/devise/registrations/_personal_details.html.erb |
---|
app/views/org_admin/departments/edit.html.erb 0 → 100644 |
---|
app/views/org_admin/departments/new.html.erb 0 → 100644 |
---|
app/views/orgs/_departments.html.erb 0 → 100644 |
---|
app/views/orgs/_profile_form.html.erb |
---|
app/views/orgs/admin_edit.html.erb |
---|
app/views/paginable/departments/_index.html.erb 0 → 100644 |
---|
app/views/paginable/users/_index.html.erb |
---|
config/routes.rb |
---|
db/migrate/20190507091025_create_departments.rb 0 → 100644 |
---|
db/schema.rb |
---|
spec/factories/departments.rb 0 → 100644 |
---|
spec/factories/users.rb |
---|
spec/models/department_spec.rb 0 → 100644 |
---|