enju_bookmark 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
- data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
- data/spec/dummy/db/schema.rb +288 -62
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/enju_leaf.rb +1 -0
- data/spec/dummy/lib/enju_leaf/import_file.rb +13 -0
- data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_0.fnm +3 -0
- data/spec/dummy/solr/data/test/index/_0.frq +0 -0
- data/spec/dummy/solr/data/test/index/_0.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_0.prx +0 -0
- data/spec/dummy/solr/data/test/index/_0.tii +0 -0
- data/spec/dummy/solr/data/test/index/_0.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_2 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +92 -8
- data/spec/dummy/app/models/checkout_type.rb +0 -32
- data/spec/dummy/app/models/circulation_status.rb +0 -21
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/lib/enju_leaf.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
NRM�ttrtt
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_bookmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -267,6 +267,22 @@ dependencies:
|
|
267
267
|
- - ! '>='
|
268
268
|
- !ruby/object:Gem::Version
|
269
269
|
version: '0'
|
270
|
+
- !ruby/object:Gem::Dependency
|
271
|
+
name: enju_circulation
|
272
|
+
requirement: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
274
|
+
requirements:
|
275
|
+
- - ! '>='
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
type: :development
|
279
|
+
prerelease: false
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
282
|
+
requirements:
|
283
|
+
- - ! '>='
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
270
286
|
description: Purchase request management for Next-L Enju
|
271
287
|
email:
|
272
288
|
- tanabe@mwr.mediacom.keio.ac.jp
|
@@ -341,8 +357,6 @@ files:
|
|
341
357
|
- spec/dummy/app/models/ability.rb
|
342
358
|
- spec/dummy/app/models/bookstore.rb
|
343
359
|
- spec/dummy/app/models/carrier_type.rb
|
344
|
-
- spec/dummy/app/models/checkout_type.rb
|
345
|
-
- spec/dummy/app/models/circulation_status.rb
|
346
360
|
- spec/dummy/app/models/exemplify.rb
|
347
361
|
- spec/dummy/app/models/item.rb
|
348
362
|
- spec/dummy/app/models/language.rb
|
@@ -382,13 +396,19 @@ files:
|
|
382
396
|
- spec/dummy/config/locales/en.yml
|
383
397
|
- spec/dummy/config/routes.rb
|
384
398
|
- spec/dummy/config.ru
|
399
|
+
- spec/dummy/db/development.sqlite3
|
385
400
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
386
401
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
387
402
|
- spec/dummy/db/migrate/006_create_items.rb
|
403
|
+
- spec/dummy/db/migrate/032_create_checkins.rb
|
404
|
+
- spec/dummy/db/migrate/033_create_checkouts.rb
|
405
|
+
- spec/dummy/db/migrate/035_create_reserves.rb
|
388
406
|
- spec/dummy/db/migrate/059_create_libraries.rb
|
389
407
|
- spec/dummy/db/migrate/069_create_shelves.rb
|
390
408
|
- spec/dummy/db/migrate/073_create_carrier_types.rb
|
391
409
|
- spec/dummy/db/migrate/080_create_library_groups.rb
|
410
|
+
- spec/dummy/db/migrate/120_create_baskets.rb
|
411
|
+
- spec/dummy/db/migrate/121_create_checked_items.rb
|
392
412
|
- spec/dummy/db/migrate/127_create_use_restrictions.rb
|
393
413
|
- spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
|
394
414
|
- spec/dummy/db/migrate/132_create_circulation_statuses.rb
|
@@ -396,16 +416,33 @@ files:
|
|
396
416
|
- spec/dummy/db/migrate/20080905191442_create_patron_types.rb
|
397
417
|
- spec/dummy/db/migrate/20081025083905_create_languages.rb
|
398
418
|
- spec/dummy/db/migrate/20081030023412_create_checkout_types.rb
|
419
|
+
- spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb
|
420
|
+
- spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb
|
421
|
+
- spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb
|
422
|
+
- spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb
|
423
|
+
- spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb
|
424
|
+
- spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb
|
425
|
+
- spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
|
426
|
+
- spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
|
427
|
+
- spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
|
428
|
+
- spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
|
429
|
+
- spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
|
399
430
|
- spec/dummy/db/migrate/20090720091429_create_content_types.rb
|
431
|
+
- spec/dummy/db/migrate/20090831220301_create_lending_policies.rb
|
400
432
|
- spec/dummy/db/migrate/20091214131723_create_series_statements.rb
|
401
433
|
- spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
|
402
434
|
- spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
|
403
435
|
- spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb
|
404
436
|
- spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
|
405
437
|
- spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
|
438
|
+
- spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb
|
439
|
+
- spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
|
440
|
+
- spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb
|
406
441
|
- spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb
|
407
442
|
- spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb
|
408
443
|
- spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
|
444
|
+
- spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
|
445
|
+
- spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
|
409
446
|
- spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb
|
410
447
|
- spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
|
411
448
|
- spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
|
@@ -418,10 +455,15 @@ files:
|
|
418
455
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
419
456
|
- spec/dummy/db/migrate/20111201163342_create_user_groups.rb
|
420
457
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
458
|
+
- spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb
|
459
|
+
- spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb
|
460
|
+
- spec/dummy/db/migrate/20120319173203_create_accepts.rb
|
461
|
+
- spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
|
421
462
|
- spec/dummy/db/schema.rb
|
422
463
|
- spec/dummy/db/test.sqlite3
|
423
464
|
- spec/dummy/lib/enju_leaf/calculate_stat.rb
|
424
465
|
- spec/dummy/lib/enju_leaf/expire_editable_fragment.rb
|
466
|
+
- spec/dummy/lib/enju_leaf/import_file.rb
|
425
467
|
- spec/dummy/lib/enju_leaf/url_validator.rb
|
426
468
|
- spec/dummy/lib/enju_leaf.rb
|
427
469
|
- spec/dummy/public/404.html
|
@@ -440,8 +482,16 @@ files:
|
|
440
482
|
- spec/dummy/solr/conf/spellings.txt
|
441
483
|
- spec/dummy/solr/conf/stopwords.txt
|
442
484
|
- spec/dummy/solr/conf/synonyms.txt
|
485
|
+
- spec/dummy/solr/data/test/index/_0.fdt
|
486
|
+
- spec/dummy/solr/data/test/index/_0.fdx
|
487
|
+
- spec/dummy/solr/data/test/index/_0.fnm
|
488
|
+
- spec/dummy/solr/data/test/index/_0.frq
|
489
|
+
- spec/dummy/solr/data/test/index/_0.nrm
|
490
|
+
- spec/dummy/solr/data/test/index/_0.prx
|
491
|
+
- spec/dummy/solr/data/test/index/_0.tii
|
492
|
+
- spec/dummy/solr/data/test/index/_0.tis
|
443
493
|
- spec/dummy/solr/data/test/index/segments.gen
|
444
|
-
- spec/dummy/solr/data/test/index/
|
494
|
+
- spec/dummy/solr/data/test/index/segments_2
|
445
495
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
446
496
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
447
497
|
- spec/factories/bookmark.rb
|
@@ -516,8 +566,6 @@ test_files:
|
|
516
566
|
- spec/dummy/app/models/ability.rb
|
517
567
|
- spec/dummy/app/models/bookstore.rb
|
518
568
|
- spec/dummy/app/models/carrier_type.rb
|
519
|
-
- spec/dummy/app/models/checkout_type.rb
|
520
|
-
- spec/dummy/app/models/circulation_status.rb
|
521
569
|
- spec/dummy/app/models/exemplify.rb
|
522
570
|
- spec/dummy/app/models/item.rb
|
523
571
|
- spec/dummy/app/models/language.rb
|
@@ -557,13 +605,19 @@ test_files:
|
|
557
605
|
- spec/dummy/config/locales/en.yml
|
558
606
|
- spec/dummy/config/routes.rb
|
559
607
|
- spec/dummy/config.ru
|
608
|
+
- spec/dummy/db/development.sqlite3
|
560
609
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
561
610
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
562
611
|
- spec/dummy/db/migrate/006_create_items.rb
|
612
|
+
- spec/dummy/db/migrate/032_create_checkins.rb
|
613
|
+
- spec/dummy/db/migrate/033_create_checkouts.rb
|
614
|
+
- spec/dummy/db/migrate/035_create_reserves.rb
|
563
615
|
- spec/dummy/db/migrate/059_create_libraries.rb
|
564
616
|
- spec/dummy/db/migrate/069_create_shelves.rb
|
565
617
|
- spec/dummy/db/migrate/073_create_carrier_types.rb
|
566
618
|
- spec/dummy/db/migrate/080_create_library_groups.rb
|
619
|
+
- spec/dummy/db/migrate/120_create_baskets.rb
|
620
|
+
- spec/dummy/db/migrate/121_create_checked_items.rb
|
567
621
|
- spec/dummy/db/migrate/127_create_use_restrictions.rb
|
568
622
|
- spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
|
569
623
|
- spec/dummy/db/migrate/132_create_circulation_statuses.rb
|
@@ -571,16 +625,33 @@ test_files:
|
|
571
625
|
- spec/dummy/db/migrate/20080905191442_create_patron_types.rb
|
572
626
|
- spec/dummy/db/migrate/20081025083905_create_languages.rb
|
573
627
|
- spec/dummy/db/migrate/20081030023412_create_checkout_types.rb
|
628
|
+
- spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb
|
629
|
+
- spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb
|
630
|
+
- spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb
|
631
|
+
- spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb
|
632
|
+
- spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb
|
633
|
+
- spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb
|
634
|
+
- spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
|
635
|
+
- spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
|
636
|
+
- spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
|
637
|
+
- spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
|
638
|
+
- spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
|
574
639
|
- spec/dummy/db/migrate/20090720091429_create_content_types.rb
|
640
|
+
- spec/dummy/db/migrate/20090831220301_create_lending_policies.rb
|
575
641
|
- spec/dummy/db/migrate/20091214131723_create_series_statements.rb
|
576
642
|
- spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
|
577
643
|
- spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
|
578
644
|
- spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb
|
579
645
|
- spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
|
580
646
|
- spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
|
647
|
+
- spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb
|
648
|
+
- spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
|
649
|
+
- spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb
|
581
650
|
- spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb
|
582
651
|
- spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb
|
583
652
|
- spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
|
653
|
+
- spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
|
654
|
+
- spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
|
584
655
|
- spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb
|
585
656
|
- spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
|
586
657
|
- spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
|
@@ -593,10 +664,15 @@ test_files:
|
|
593
664
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
594
665
|
- spec/dummy/db/migrate/20111201163342_create_user_groups.rb
|
595
666
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
667
|
+
- spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb
|
668
|
+
- spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb
|
669
|
+
- spec/dummy/db/migrate/20120319173203_create_accepts.rb
|
670
|
+
- spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
|
596
671
|
- spec/dummy/db/schema.rb
|
597
672
|
- spec/dummy/db/test.sqlite3
|
598
673
|
- spec/dummy/lib/enju_leaf/calculate_stat.rb
|
599
674
|
- spec/dummy/lib/enju_leaf/expire_editable_fragment.rb
|
675
|
+
- spec/dummy/lib/enju_leaf/import_file.rb
|
600
676
|
- spec/dummy/lib/enju_leaf/url_validator.rb
|
601
677
|
- spec/dummy/lib/enju_leaf.rb
|
602
678
|
- spec/dummy/public/404.html
|
@@ -615,8 +691,16 @@ test_files:
|
|
615
691
|
- spec/dummy/solr/conf/spellings.txt
|
616
692
|
- spec/dummy/solr/conf/stopwords.txt
|
617
693
|
- spec/dummy/solr/conf/synonyms.txt
|
694
|
+
- spec/dummy/solr/data/test/index/_0.fdt
|
695
|
+
- spec/dummy/solr/data/test/index/_0.fdx
|
696
|
+
- spec/dummy/solr/data/test/index/_0.fnm
|
697
|
+
- spec/dummy/solr/data/test/index/_0.frq
|
698
|
+
- spec/dummy/solr/data/test/index/_0.nrm
|
699
|
+
- spec/dummy/solr/data/test/index/_0.prx
|
700
|
+
- spec/dummy/solr/data/test/index/_0.tii
|
701
|
+
- spec/dummy/solr/data/test/index/_0.tis
|
618
702
|
- spec/dummy/solr/data/test/index/segments.gen
|
619
|
-
- spec/dummy/solr/data/test/index/
|
703
|
+
- spec/dummy/solr/data/test/index/segments_2
|
620
704
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
621
705
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
622
706
|
- spec/factories/bookmark.rb
|
@@ -1,32 +0,0 @@
|
|
1
|
-
class CheckoutType < ActiveRecord::Base
|
2
|
-
include MasterModel
|
3
|
-
default_scope :order => "checkout_types.position"
|
4
|
-
scope :available_for_carrier_type, lambda {|carrier_type| {:include => :carrier_types, :conditions => ['carrier_types.name = ?', carrier_type.name], :order => 'carrier_types.position'}}
|
5
|
-
scope :available_for_user_group, lambda {|user_group| {:include => :user_groups, :conditions => ['user_groups.name = ?', user_group.name], :order => 'user_group.position'}}
|
6
|
-
|
7
|
-
has_many :user_group_has_checkout_types, :dependent => :destroy
|
8
|
-
has_many :user_groups, :through => :user_group_has_checkout_types
|
9
|
-
has_many :carrier_type_has_checkout_types, :dependent => :destroy
|
10
|
-
has_many :carrier_types, :through => :carrier_type_has_checkout_types
|
11
|
-
#has_many :item_has_checkout_types, :dependent => :destroy
|
12
|
-
#has_many :items, :through => :item_has_checkout_types
|
13
|
-
has_many :items
|
14
|
-
|
15
|
-
def self.per_page
|
16
|
-
10
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
# == Schema Information
|
21
|
-
#
|
22
|
-
# Table name: checkout_types
|
23
|
-
#
|
24
|
-
# id :integer not null, primary key
|
25
|
-
# name :string(255) not null
|
26
|
-
# display_name :text
|
27
|
-
# note :text
|
28
|
-
# position :integer
|
29
|
-
# created_at :datetime
|
30
|
-
# updated_at :datetime
|
31
|
-
#
|
32
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class CirculationStatus < ActiveRecord::Base
|
2
|
-
include MasterModel
|
3
|
-
default_scope :order => "position"
|
4
|
-
scope :available_for_checkout, where(:name => 'Available On Shelf')
|
5
|
-
has_many :items
|
6
|
-
attr_protected :name
|
7
|
-
end
|
8
|
-
|
9
|
-
# == Schema Information
|
10
|
-
#
|
11
|
-
# Table name: circulation_statuses
|
12
|
-
#
|
13
|
-
# id :integer not null, primary key
|
14
|
-
# name :string(255) not null
|
15
|
-
# display_name :text
|
16
|
-
# note :text
|
17
|
-
# position :integer
|
18
|
-
# created_at :datetime
|
19
|
-
# updated_at :datetime
|
20
|
-
#
|
21
|
-
|
Binary file
|