enju_bookmark 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ class BookmarksController < ApplicationController
41
41
  @bookmarks = search.execute!.results
42
42
 
43
43
  respond_to do |format|
44
- format.html # index.rhtml
44
+ format.html # index.html.erb
45
45
  format.json { render :json => @bookmarks }
46
46
  end
47
47
  end
@@ -50,7 +50,7 @@ class BookmarksController < ApplicationController
50
50
  # GET /bookmarks/1.json
51
51
  def show
52
52
  respond_to do |format|
53
- format.html # show.rhtml
53
+ format.html # show.html.erb
54
54
  format.json { render :json => @bookmark }
55
55
  end
56
56
  end
@@ -13,6 +13,7 @@ ja:
13
13
  tag:
14
14
  name: 名前
15
15
  synonym: 同義語
16
+ taggings_count: タグ付けされた回数
16
17
  user:
17
18
  share_bookmarks: ブックマークを他の人物・団体と共有する
18
19
  library_group:
@@ -10,5 +10,7 @@ class CreateBookmarkStats < ActiveRecord::Migration
10
10
 
11
11
  t.timestamps
12
12
  end
13
+
14
+ add_index :bookmark_stats, :state
13
15
  end
14
16
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -23,25 +23,16 @@ class Item < ActiveRecord::Base
23
23
  validates :manifestation_id, :presence => true, :on => :create
24
24
  validates_associated :circulation_status, :checkout_type
25
25
  validates_presence_of :circulation_status, :checkout_type
26
- before_save :set_use_restriction
27
26
  searchable do
28
27
  integer :circulation_status_id
29
28
  end
30
- attr_accessor :library_id, :manifestation_id, :use_restriction_id
29
+ accepts_nested_attributes_for :item_has_use_restriction
30
+ attr_accessor :library_id, :manifestation_id
31
31
 
32
32
  def set_circulation_status
33
33
  self.circulation_status = CirculationStatus.where(:name => 'In Process').first if self.circulation_status.nil?
34
34
  end
35
35
 
36
- def set_use_restriction
37
- if self.use_restriction_id
38
- self.use_restriction = UseRestriction.where(:id => self.use_restriction_id).first
39
- else
40
- return if use_restriction
41
- self.use_restriction = UseRestriction.where(:name => 'Limited Circulation, Normal Loan Period').first
42
- end
43
- end
44
-
45
36
  def checkout_status(user)
46
37
  user.user_group.user_group_has_checkout_types.where(:checkout_type_id => self.checkout_type.id).first
47
38
  end
@@ -92,10 +92,6 @@ Devise.setup do |config|
92
92
  # If true, extends the user's remember period when remembered via cookie.
93
93
  # config.extend_remember_period = false
94
94
 
95
- # If true, uses the password salt as remember token. This should be turned
96
- # to false if you are not using database authenticatable.
97
- config.use_salt_as_remember_token = true
98
-
99
95
  # Options to be passed to the created cookie. For instance, you can set
100
96
  # :secure => true in order to force SSL only cookies.
101
97
  # config.cookie_options = {}
@@ -1,19 +1,43 @@
1
1
  class AddDeviseToUsers < ActiveRecord::Migration
2
2
  def self.up
3
3
  change_table(:users) do |t|
4
- t.database_authenticatable :null => false
5
- t.recoverable
6
- t.rememberable
7
- t.trackable
4
+ ## Database authenticatable
5
+ t.string :email, :null => false, :default => ""
6
+ t.string :encrypted_password, :null => false, :default => ""
8
7
 
9
- # t.encryptable
10
- # t.confirmable
11
- # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
12
- # t.token_authenticatable
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
13
11
 
12
+ ## Rememberable
13
+ t.datetime :remember_created_at
14
14
 
15
- # Uncomment below if timestamps were not included in your original model.
16
- # t.timestamps
15
+ ## Trackable
16
+ t.integer :sign_in_count, :default => 0
17
+ t.datetime :current_sign_in_at
18
+ t.datetime :last_sign_in_at
19
+ t.string :current_sign_in_ip
20
+ t.string :last_sign_in_ip
21
+
22
+ ## Encryptable
23
+ t.string :password_salt
24
+
25
+ ## Confirmable
26
+ t.string :confirmation_token
27
+ t.datetime :confirmed_at
28
+ t.datetime :confirmation_sent_at
29
+ t.string :unconfirmed_email # Only if using reconfirmable
30
+
31
+ ## Lockable
32
+ t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
33
+ t.string :unlock_token # Only if unlock strategy is :email or :both
34
+ t.datetime :locked_at
35
+
36
+ # Token authenticatable
37
+ t.string :authentication_token
38
+
39
+
40
+ t.datetime :deleted_at
17
41
  end
18
42
 
19
43
  add_index :users, :email #, :unique => true
@@ -35,6 +35,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
35
35
  t.datetime "updated_at", :null => false
36
36
  end
37
37
 
38
+ add_index "bookmark_stats", ["state"], :name => "index_bookmark_stats_on_state"
39
+
38
40
  create_table "bookmarks", :force => true do |t|
39
41
  t.integer "user_id", :null => false
40
42
  t.integer "manifestation_id"
@@ -440,18 +442,28 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
440
442
  t.string "username"
441
443
  t.text "note"
442
444
  t.string "locale"
443
- t.datetime "created_at", :null => false
444
- t.datetime "updated_at", :null => false
445
- t.string "email", :default => "", :null => false
446
- t.string "encrypted_password", :limit => 128, :default => "", :null => false
445
+ t.datetime "created_at", :null => false
446
+ t.datetime "updated_at", :null => false
447
+ t.string "email", :default => "", :null => false
448
+ t.string "encrypted_password", :default => "", :null => false
447
449
  t.string "reset_password_token"
448
450
  t.datetime "reset_password_sent_at"
449
451
  t.datetime "remember_created_at"
450
- t.integer "sign_in_count", :default => 0
452
+ t.integer "sign_in_count", :default => 0
451
453
  t.datetime "current_sign_in_at"
452
454
  t.datetime "last_sign_in_at"
453
455
  t.string "current_sign_in_ip"
454
456
  t.string "last_sign_in_ip"
457
+ t.string "password_salt"
458
+ t.string "confirmation_token"
459
+ t.datetime "confirmed_at"
460
+ t.datetime "confirmation_sent_at"
461
+ t.string "unconfirmed_email"
462
+ t.integer "failed_attempts", :default => 0
463
+ t.string "unlock_token"
464
+ t.datetime "locked_at"
465
+ t.string "authentication_token"
466
+ t.datetime "deleted_at"
455
467
  t.boolean "share_bookmarks"
456
468
  end
457
469
 
Binary file
@@ -195,7 +195,7 @@ manifestation_00022:
195
195
  manifestation_00023:
196
196
  carrier_type_id: 1
197
197
  isbn:
198
- created_at: 2008-04-17 00:34:01 +09:00
198
+ updated_at: 2008-04-17 00:34:01 +09:00
199
199
  original_title: "世界の美しい図書館集めてみた【第一弾】"
200
200
  price:
201
201
  manifestation_identifier:
@@ -5,78 +5,104 @@ use_restriction_00001:
5
5
  id: 1
6
6
  position: 1
7
7
  note: ""
8
+ created_at: <%= Time.zone.now %>
9
+ updated_at: <%= Time.zone.now %>
8
10
  use_restriction_00002:
9
11
  name: In Library Use Only
10
12
  display_name: In Library Use Only
11
13
  id: 2
12
14
  position: 2
13
15
  note: ""
16
+ created_at: <%= Time.zone.now %>
17
+ updated_at: <%= Time.zone.now %>
14
18
  use_restriction_00003:
15
19
  name: Limited Circulation, Long Loan Period
16
20
  display_name: Limited Circulation, Long Loan Period
17
21
  id: 3
18
22
  position: 3
19
23
  note: ""
24
+ created_at: <%= Time.zone.now %>
25
+ updated_at: <%= Time.zone.now %>
20
26
  use_restriction_00003:
21
27
  name: Limited Circulation, Normal Loan Period
22
28
  display_name: Limited Circulation, Normal Loan Period
23
29
  id: 4
24
30
  position: 4
25
31
  note: ""
32
+ created_at: <%= Time.zone.now %>
33
+ updated_at: <%= Time.zone.now %>
26
34
  use_restriction_00005:
27
35
  name: Limited Circulation, Short Loan Period
28
36
  display_name: Limited Circulation, Short Loan Period
29
37
  id: 5
30
38
  position: 5
31
39
  note: ""
40
+ created_at: <%= Time.zone.now %>
41
+ updated_at: <%= Time.zone.now %>
32
42
  use_restriction_00006:
33
43
  name: No Reproduction
34
44
  display_name: No Reproduction
35
45
  id: 6
36
46
  position: 6
37
47
  note: ""
48
+ created_at: <%= Time.zone.now %>
49
+ updated_at: <%= Time.zone.now %>
38
50
  use_restriction_00007:
39
51
  name: Not For Loan
40
52
  display_name: Not For Loan
41
53
  id: 7
42
54
  position: 7
43
55
  note: ""
56
+ created_at: <%= Time.zone.now %>
57
+ updated_at: <%= Time.zone.now %>
44
58
  use_restriction_00008:
45
59
  name: Overnight Only
46
60
  display_name: Overnight Only
47
61
  id: 8
48
62
  position: 8
49
63
  note: ""
64
+ created_at: <%= Time.zone.now %>
65
+ updated_at: <%= Time.zone.now %>
50
66
  use_restriction_00009:
51
67
  name: Renewals Not Permitted
52
68
  display_name: Renewals Not Permitted
53
69
  id: 9
54
70
  position: 9
55
71
  note: ""
72
+ created_at: <%= Time.zone.now %>
73
+ updated_at: <%= Time.zone.now %>
56
74
  use_restriction_00010:
57
75
  name: Supervision Required
58
76
  display_name: Supervision Required
59
77
  id: 10
60
78
  position: 10
61
79
  note: ""
80
+ created_at: <%= Time.zone.now %>
81
+ updated_at: <%= Time.zone.now %>
62
82
  use_restriction_00011:
63
83
  name: Term Loan
64
84
  display_name: Term Loan
65
85
  id: 11
66
86
  position: 11
67
87
  note: ""
88
+ created_at: <%= Time.zone.now %>
89
+ updated_at: <%= Time.zone.now %>
68
90
  use_restriction_00012:
69
91
  name: Use Only In Controlled Access
70
92
  display_name: Use Only In Controlled Access
71
93
  id: 12
72
94
  position: 12
73
95
  note: ""
96
+ created_at: <%= Time.zone.now %>
97
+ updated_at: <%= Time.zone.now %>
74
98
  use_restriction_00013:
75
99
  name: User Signature Required
76
100
  display_name: User Signature Required
77
101
  id: 13
78
102
  position: 13
79
103
  note: ""
104
+ created_at: <%= Time.zone.now %>
105
+ updated_at: <%= Time.zone.now %>
80
106
 
81
107
  # == Schema Information
82
108
  #
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-13 00:00:00.000000000 Z
12
+ date: 2012-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70241606384020 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70241606384020
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: acts-as-taggable-on
27
- requirement: &70241606382600 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '2.2'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70241606382600
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '2.2'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: will_paginate
38
- requirement: &70241606381280 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '3.0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70241606381280
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: devise
49
- requirement: &70241606380340 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70241606380340
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: cancan
60
- requirement: &70241606379720 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0'
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70241606379720
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: state_machine
71
- requirement: &70241606379100 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0'
77
102
  type: :runtime
78
103
  prerelease: false
79
- version_requirements: *70241606379100
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: friendly_id
82
- requirement: &70241606377980 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ~>
@@ -87,10 +117,15 @@ dependencies:
87
117
  version: '4.0'
88
118
  type: :runtime
89
119
  prerelease: false
90
- version_requirements: *70241606377980
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '4.0'
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: attribute_normalizer
93
- requirement: &70241606392760 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ~>
@@ -98,10 +133,15 @@ dependencies:
98
133
  version: '1.1'
99
134
  type: :runtime
100
135
  prerelease: false
101
- version_requirements: *70241606392760
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '1.1'
102
142
  - !ruby/object:Gem::Dependency
103
143
  name: sunspot_rails
104
- requirement: &70241606391520 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
105
145
  none: false
106
146
  requirements:
107
147
  - - ! '>='
@@ -109,10 +149,15 @@ dependencies:
109
149
  version: '0'
110
150
  type: :runtime
111
151
  prerelease: false
112
- version_requirements: *70241606391520
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
113
158
  - !ruby/object:Gem::Dependency
114
159
  name: sunspot_solr
115
- requirement: &70241606390720 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
116
161
  none: false
117
162
  requirements:
118
163
  - - ! '>='
@@ -120,10 +165,15 @@ dependencies:
120
165
  version: '0'
121
166
  type: :runtime
122
167
  prerelease: false
123
- version_requirements: *70241606390720
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
124
174
  - !ruby/object:Gem::Dependency
125
175
  name: addressable
126
- requirement: &70241606390300 !ruby/object:Gem::Requirement
176
+ requirement: !ruby/object:Gem::Requirement
127
177
  none: false
128
178
  requirements:
129
179
  - - ! '>='
@@ -131,21 +181,31 @@ dependencies:
131
181
  version: '0'
132
182
  type: :runtime
133
183
  prerelease: false
134
- version_requirements: *70241606390300
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
135
190
  - !ruby/object:Gem::Dependency
136
191
  name: acts_as_list
137
- requirement: &70241606389700 !ruby/object:Gem::Requirement
192
+ requirement: !ruby/object:Gem::Requirement
138
193
  none: false
139
194
  requirements:
140
195
  - - ~>
141
196
  - !ruby/object:Gem::Version
142
- version: 0.1.5
197
+ version: 0.1.6
143
198
  type: :runtime
144
199
  prerelease: false
145
- version_requirements: *70241606389700
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ~>
204
+ - !ruby/object:Gem::Version
205
+ version: 0.1.6
146
206
  - !ruby/object:Gem::Dependency
147
207
  name: sqlite3
148
- requirement: &70241606389000 !ruby/object:Gem::Requirement
208
+ requirement: !ruby/object:Gem::Requirement
149
209
  none: false
150
210
  requirements:
151
211
  - - ! '>='
@@ -153,10 +213,15 @@ dependencies:
153
213
  version: '0'
154
214
  type: :development
155
215
  prerelease: false
156
- version_requirements: *70241606389000
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
157
222
  - !ruby/object:Gem::Dependency
158
223
  name: rspec-rails
159
- requirement: &70241606388180 !ruby/object:Gem::Requirement
224
+ requirement: !ruby/object:Gem::Requirement
160
225
  none: false
161
226
  requirements:
162
227
  - - ! '>='
@@ -164,21 +229,31 @@ dependencies:
164
229
  version: '0'
165
230
  type: :development
166
231
  prerelease: false
167
- version_requirements: *70241606388180
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
168
238
  - !ruby/object:Gem::Dependency
169
239
  name: factory_girl_rails
170
- requirement: &70241606387220 !ruby/object:Gem::Requirement
240
+ requirement: !ruby/object:Gem::Requirement
171
241
  none: false
172
242
  requirements:
173
- - - ~>
243
+ - - ! '>='
174
244
  - !ruby/object:Gem::Version
175
- version: '3.1'
245
+ version: '0'
176
246
  type: :development
177
247
  prerelease: false
178
- version_requirements: *70241606387220
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
179
254
  - !ruby/object:Gem::Dependency
180
255
  name: sunspot-rails-tester
181
- requirement: &70241606386600 !ruby/object:Gem::Requirement
256
+ requirement: !ruby/object:Gem::Requirement
182
257
  none: false
183
258
  requirements:
184
259
  - - ! '>='
@@ -186,7 +261,12 @@ dependencies:
186
261
  version: '0'
187
262
  type: :development
188
263
  prerelease: false
189
- version_requirements: *70241606386600
264
+ version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
190
270
  description: Purchase request management for Next-L Enju
191
271
  email:
192
272
  - tanabe@mwr.mediacom.keio.ac.jp
@@ -262,7 +342,6 @@ files:
262
342
  - spec/dummy/app/models/circulation_status.rb
263
343
  - spec/dummy/app/models/exemplify.rb
264
344
  - spec/dummy/app/models/item.rb
265
- - spec/dummy/app/models/item_has_use_restriction.rb
266
345
  - spec/dummy/app/models/language.rb
267
346
  - spec/dummy/app/models/library.rb
268
347
  - spec/dummy/app/models/library_group.rb
@@ -273,7 +352,6 @@ files:
273
352
  - spec/dummy/app/models/series_has_manifestation.rb
274
353
  - spec/dummy/app/models/series_statement.rb
275
354
  - spec/dummy/app/models/shelf.rb
276
- - spec/dummy/app/models/use_restriction.rb
277
355
  - spec/dummy/app/models/user.rb
278
356
  - spec/dummy/app/models/user_group.rb
279
357
  - spec/dummy/app/models/user_has_role.rb
@@ -301,7 +379,6 @@ files:
301
379
  - spec/dummy/config/locales/en.yml
302
380
  - spec/dummy/config/routes.rb
303
381
  - spec/dummy/config.ru
304
- - spec/dummy/db/development.sqlite3
305
382
  - spec/dummy/db/migrate/001_create_patrons.rb
306
383
  - spec/dummy/db/migrate/005_create_manifestations.rb
307
384
  - spec/dummy/db/migrate/006_create_items.rb
@@ -419,7 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
419
496
  version: '0'
420
497
  requirements: []
421
498
  rubyforge_project:
422
- rubygems_version: 1.8.11
499
+ rubygems_version: 1.8.23
423
500
  signing_key:
424
501
  specification_version: 3
425
502
  summary: enju_bookmark plugin
@@ -438,7 +515,6 @@ test_files:
438
515
  - spec/dummy/app/models/circulation_status.rb
439
516
  - spec/dummy/app/models/exemplify.rb
440
517
  - spec/dummy/app/models/item.rb
441
- - spec/dummy/app/models/item_has_use_restriction.rb
442
518
  - spec/dummy/app/models/language.rb
443
519
  - spec/dummy/app/models/library.rb
444
520
  - spec/dummy/app/models/library_group.rb
@@ -449,7 +525,6 @@ test_files:
449
525
  - spec/dummy/app/models/series_has_manifestation.rb
450
526
  - spec/dummy/app/models/series_statement.rb
451
527
  - spec/dummy/app/models/shelf.rb
452
- - spec/dummy/app/models/use_restriction.rb
453
528
  - spec/dummy/app/models/user.rb
454
529
  - spec/dummy/app/models/user_group.rb
455
530
  - spec/dummy/app/models/user_has_role.rb
@@ -477,7 +552,6 @@ test_files:
477
552
  - spec/dummy/config/locales/en.yml
478
553
  - spec/dummy/config/routes.rb
479
554
  - spec/dummy/config.ru
480
- - spec/dummy/db/development.sqlite3
481
555
  - spec/dummy/db/migrate/001_create_patrons.rb
482
556
  - spec/dummy/db/migrate/005_create_manifestations.rb
483
557
  - spec/dummy/db/migrate/006_create_items.rb
@@ -1,23 +0,0 @@
1
- class ItemHasUseRestriction < ActiveRecord::Base
2
- belongs_to :item, :validate => true
3
- belongs_to :use_restriction, :validate => true
4
-
5
- def self.per_page
6
- 10
7
- end
8
-
9
- validates_associated :item, :use_restriction
10
- validates_presence_of :item, :use_restriction
11
- end
12
-
13
- # == Schema Information
14
- #
15
- # Table name: item_has_use_restrictions
16
- #
17
- # id :integer not null, primary key
18
- # item_id :integer not null
19
- # use_restriction_id :integer not null
20
- # created_at :datetime
21
- # updated_at :datetime
22
- #
23
-
@@ -1,22 +0,0 @@
1
- class UseRestriction < ActiveRecord::Base
2
- include MasterModel
3
- default_scope :order => 'position'
4
- scope :available, where(:name => ['Not For Loan', 'Limited Circulation, Normal Loan Period'])
5
- has_many :item_has_use_restrictions
6
- has_many :items, :through => :item_has_use_restrictions
7
- attr_protected :name
8
- end
9
-
10
- # == Schema Information
11
- #
12
- # Table name: use_restrictions
13
- #
14
- # id :integer not null, primary key
15
- # name :string(255) not null
16
- # display_name :text
17
- # note :text
18
- # position :integer
19
- # created_at :datetime
20
- # updated_at :datetime
21
- #
22
-
File without changes