enju_circulation 0.3.7 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/checkins_controller.rb +2 -2
  3. data/app/controllers/checkouts_controller.rb +2 -2
  4. data/app/controllers/demands_controller.rb +1 -1
  5. data/app/controllers/manifestation_checkout_stats_controller.rb +2 -2
  6. data/app/controllers/manifestation_reserve_stats_controller.rb +2 -2
  7. data/app/controllers/reserves_controller.rb +2 -2
  8. data/app/controllers/user_checkout_stats_controller.rb +2 -2
  9. data/app/controllers/user_reserve_stats_controller.rb +2 -2
  10. data/app/models/checkin.rb +1 -1
  11. data/app/models/checkout.rb +2 -2
  12. data/app/models/checkout_stat_has_user.rb +1 -1
  13. data/app/models/concerns/enju_circulation/enju_item.rb +2 -0
  14. data/app/models/lending_policy.rb +3 -3
  15. data/app/models/manifestation_checkout_stat_transition.rb +1 -1
  16. data/app/models/manifestation_reserve_stat_transition.rb +1 -1
  17. data/app/models/reserve.rb +4 -4
  18. data/app/models/reserve_state_machine.rb +2 -3
  19. data/app/models/reserve_transition.rb +1 -1
  20. data/app/models/user_checkout_stat_transition.rb +1 -1
  21. data/app/models/user_group_has_checkout_type.rb +6 -6
  22. data/app/models/user_reserve_stat_transition.rb +1 -1
  23. data/app/views/checkouts/{index.txt.ruby → index.text.ruby} +0 -0
  24. data/app/views/manifestation_checkout_stats/{show.txt.erb → show.text.erb} +0 -0
  25. data/app/views/manifestation_reserve_stats/{show.txt.erb → show.text.erb} +0 -0
  26. data/app/views/reserves/{index.txt.ruby → index.text.ruby} +0 -0
  27. data/app/views/user_checkout_stats/{show.txt.erb → show.text.erb} +0 -0
  28. data/app/views/user_reserve_stats/{show.txt.erb → show.text.erb} +0 -0
  29. data/lib/enju_circulation/version.rb +1 -1
  30. data/lib/generators/enju_circulation/setup/setup_generator.rb +0 -5
  31. data/spec/controllers/checkins_controller_spec.rb +130 -8
  32. data/spec/controllers/checkouts_controller_spec.rb +5 -5
  33. data/spec/controllers/reserves_controller_spec.rb +9 -9
  34. data/spec/controllers/withdraws_controller_spec.rb +26 -0
  35. data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +12 -0
  36. data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +12 -0
  37. data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +12 -0
  38. data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +12 -0
  39. data/spec/dummy/db/schema.rb +43 -10
  40. data/spec/fixtures/checkins.yml +1 -1
  41. data/spec/fixtures/checkout_stat_has_users.yml +1 -1
  42. data/spec/fixtures/checkouts.yml +2 -2
  43. data/spec/fixtures/lending_policies.yml +3 -3
  44. data/spec/fixtures/reserve_transitions.yml +1 -1
  45. data/spec/fixtures/reserves.yml +3 -3
  46. data/spec/fixtures/user_group_has_checkout_types.yml +6 -6
  47. data/spec/models/checkin_spec.rb +1 -1
  48. data/spec/models/checkout_spec.rb +2 -2
  49. data/spec/models/checkout_stat_has_user_spec.rb +1 -1
  50. data/spec/models/lending_policy_spec.rb +3 -3
  51. data/spec/models/reserve_spec.rb +3 -3
  52. data/spec/models/user_group_has_checkout_type_spec.rb +6 -6
  53. data/spec/system/reserves_spec.rb +1 -1
  54. metadata +391 -361
  55. data/spec/dummy/db/migrate/20191219122214_create_custom_properties.rb +0 -12
@@ -1,12 +0,0 @@
1
- class CreateCustomProperties < ActiveRecord::Migration[5.2]
2
- def change
3
- create_table :custom_properties do |t|
4
- t.integer :resource_id, null: false
5
- t.string :resource_type, null: false
6
- t.text :label, null: false
7
- t.text :value
8
-
9
- t.timestamps
10
- end
11
- end
12
- end