enju_message 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. data/app/controllers/messages_controller.rb +1 -1
  2. data/app/models/message.rb +1 -3
  3. data/app/models/message_request.rb +12 -8
  4. data/app/models/message_template.rb +1 -3
  5. data/app/views/message_requests/index.html.erb +1 -1
  6. data/app/views/message_templates/index.html.erb +1 -1
  7. data/app/views/messages/index.html.erb +1 -1
  8. data/lib/enju_message/version.rb +1 -1
  9. data/lib/generators/enju_message/views_generator.rb +21 -0
  10. data/spec/dummy/db/test.sqlite3 +0 -0
  11. data/spec/dummy/solr/data/test/index/_n.fdt +0 -0
  12. data/spec/dummy/solr/data/test/index/_n.fdx +0 -0
  13. data/spec/dummy/solr/data/test/index/{_f.fnm → _n.fnm} +1 -1
  14. data/spec/dummy/solr/data/test/index/{_f.frq → _n.frq} +0 -0
  15. data/spec/dummy/solr/data/test/index/{_f.nrm → _n.nrm} +0 -0
  16. data/spec/dummy/solr/data/test/index/{_f.prx → _n.prx} +0 -0
  17. data/spec/dummy/solr/data/test/index/{_f.tii → _n.tii} +0 -0
  18. data/spec/dummy/solr/data/test/index/_n.tis +0 -0
  19. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  20. data/spec/dummy/solr/data/test/index/segments_1d +0 -0
  21. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  22. metadata +21 -143
  23. data/app/views/baskets/edit.html.erb +0 -30
  24. data/app/views/baskets/index.html.erb +0 -31
  25. data/app/views/baskets/new.html.erb +0 -29
  26. data/app/views/baskets/show.html.erb +0 -23
  27. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  28. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  29. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  30. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  31. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  32. data/app/views/checked_items/_checkouts.html.erb +0 -20
  33. data/app/views/checked_items/_list.html.erb +0 -39
  34. data/app/views/checked_items/edit.html.erb +0 -21
  35. data/app/views/checked_items/index.html.erb +0 -32
  36. data/app/views/checked_items/index.js.erb +0 -1
  37. data/app/views/checked_items/new.html.erb +0 -20
  38. data/app/views/checked_items/show.html.erb +0 -24
  39. data/app/views/checkins/_form.html.erb +0 -24
  40. data/app/views/checkins/_list.html.erb +0 -51
  41. data/app/views/checkins/edit.html.erb +0 -26
  42. data/app/views/checkins/index.html.erb +0 -16
  43. data/app/views/checkins/index.js.erb +0 -1
  44. data/app/views/checkins/new.html.erb +0 -14
  45. data/app/views/checkins/show.html.erb +0 -24
  46. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  47. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  48. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  49. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  50. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  51. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  52. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  53. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  54. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  55. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  56. data/app/views/checkout_types/_form.html.erb +0 -19
  57. data/app/views/checkout_types/edit.html.erb +0 -13
  58. data/app/views/checkout_types/index.html.erb +0 -50
  59. data/app/views/checkout_types/new.html.erb +0 -12
  60. data/app/views/checkout_types/show.html.erb +0 -38
  61. data/app/views/checkouts/_form.html.erb +0 -28
  62. data/app/views/checkouts/_index.html.erb +0 -23
  63. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  64. data/app/views/checkouts/_index_user.html.erb +0 -44
  65. data/app/views/checkouts/_list.html.erb +0 -45
  66. data/app/views/checkouts/edit.html.erb +0 -51
  67. data/app/views/checkouts/index.atom.builder +0 -14
  68. data/app/views/checkouts/index.csv.erb +0 -4
  69. data/app/views/checkouts/index.html.erb +0 -11
  70. data/app/views/checkouts/index.ics.erb +0 -13
  71. data/app/views/checkouts/index.rss.builder +0 -38
  72. data/app/views/checkouts/new.html.erb +0 -20
  73. data/app/views/checkouts/show.html.erb +0 -35
  74. data/app/views/circulation_statuses/_form.html.erb +0 -19
  75. data/app/views/circulation_statuses/edit.html.erb +0 -13
  76. data/app/views/circulation_statuses/index.html.erb +0 -43
  77. data/app/views/circulation_statuses/new.html.erb +0 -12
  78. data/app/views/circulation_statuses/show.html.erb +0 -29
  79. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  80. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  81. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  82. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  83. data/app/views/lending_policies/_form.html.erb +0 -41
  84. data/app/views/lending_policies/edit.html.erb +0 -13
  85. data/app/views/lending_policies/index.html.erb +0 -42
  86. data/app/views/lending_policies/new.html.erb +0 -12
  87. data/app/views/lending_policies/show.html.erb +0 -50
  88. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  89. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  90. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  91. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  92. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  93. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  94. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  95. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  96. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  97. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  98. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  99. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  100. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  101. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  102. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  103. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  104. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  105. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  106. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  107. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  108. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  109. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  110. data/app/views/reserves/_form.html.erb +0 -49
  111. data/app/views/reserves/_new.html.erb +0 -44
  112. data/app/views/reserves/_new_user.html.erb +0 -50
  113. data/app/views/reserves/_title.html.erb +0 -19
  114. data/app/views/reserves/edit.html.erb +0 -42
  115. data/app/views/reserves/index.atom.builder +0 -14
  116. data/app/views/reserves/index.csv.erb +0 -4
  117. data/app/views/reserves/index.html.erb +0 -75
  118. data/app/views/reserves/index.rss.builder +0 -41
  119. data/app/views/reserves/new.html.erb +0 -5
  120. data/app/views/reserves/show.html.erb +0 -61
  121. data/app/views/use_restrictions/_form.html.erb +0 -19
  122. data/app/views/use_restrictions/edit.html.erb +0 -13
  123. data/app/views/use_restrictions/index.html.erb +0 -43
  124. data/app/views/use_restrictions/new.html.erb +0 -12
  125. data/app/views/use_restrictions/show.html.erb +0 -29
  126. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  127. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  128. data/app/views/user_checkout_stats/index.html.erb +0 -35
  129. data/app/views/user_checkout_stats/new.html.erb +0 -12
  130. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  131. data/app/views/user_checkout_stats/show.html.erb +0 -55
  132. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  133. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  134. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  135. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  136. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  137. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  138. data/app/views/user_reserve_stats/index.html.erb +0 -35
  139. data/app/views/user_reserve_stats/new.html.erb +0 -12
  140. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  141. data/app/views/user_reserve_stats/show.html.erb +0 -54
  142. data/spec/dummy/db/development.sqlite3 +0 -0
  143. data/spec/dummy/db/production.sqlite3 +0 -0
  144. data/spec/dummy/solr/data/test/index/_f.fdt +0 -0
  145. data/spec/dummy/solr/data/test/index/_f.fdx +0 -0
  146. data/spec/dummy/solr/data/test/index/_f.tis +0 -0
  147. data/spec/dummy/solr/data/test/index/segments_x +0 -0
@@ -29,7 +29,7 @@ class MessagesController < ApplicationController
29
29
  with(:is_read).equal_to is_read unless is_read.nil?
30
30
  end
31
31
  page = params[:page] || 1
32
- search.query.paginate(page.to_i, Message.per_page)
32
+ search.query.paginate(page.to_i, Message.default_per_page)
33
33
  @messages = search.execute!.results
34
34
 
35
35
  respond_to do |format|
@@ -40,9 +40,7 @@ class Message < ActiveRecord::Base
40
40
  end
41
41
  end
42
42
 
43
- def self.per_page
44
- 10
45
- end
43
+ paginates_per 10
46
44
 
47
45
  def set_receiver
48
46
  if self.recipient
@@ -26,9 +26,7 @@ class MessageRequest < ActiveRecord::Base
26
26
  end
27
27
  end
28
28
 
29
- def self.per_page
30
- 10
31
- end
29
+ paginates_per 10
32
30
 
33
31
  def start_sending_message
34
32
  sm_start!
@@ -38,16 +36,22 @@ class MessageRequest < ActiveRecord::Base
38
36
  def send_message
39
37
  message = nil
40
38
  MessageRequest.transaction do
41
- if self.body
42
- message = Message.create!(:sender => self.sender, :recipient => self.receiver.username, :subject => self.subject, :body => self.body)
39
+ if body
40
+ message = Message.new
41
+ message.sender = sender
42
+ message.recipient = receiver.username
43
+ message.subject = subject
44
+ message.body = body
45
+ message.save!
43
46
  else
44
47
  raise 'body is empty!'
45
48
  end
46
49
  self.sent_at = Time.zone.now
47
- save!
50
+ save(:validate => false)
48
51
  if ['reservation_expired_for_patron', 'reservation_expired_for_patron'].include?(self.message_template.status)
49
52
  self.receiver.reserves.each do |reserve|
50
- reserve.update_attribute(:expiration_notice_to_patron, true)
53
+ reserve.expiration_notice_to_patron = true
54
+ reserve.save(:validate => false)
51
55
  end
52
56
  end
53
57
  end
@@ -55,7 +59,7 @@ class MessageRequest < ActiveRecord::Base
55
59
  end
56
60
 
57
61
  def subject
58
- self.message_template.title
62
+ message_template.title
59
63
  end
60
64
 
61
65
  def save_message_body(options = {})
@@ -8,9 +8,7 @@ class MessageTemplate < ActiveRecord::Base
8
8
 
9
9
  acts_as_list
10
10
 
11
- def self.per_page
12
- 10
13
- end
11
+ paginates_per 10
14
12
 
15
13
  def embed_body(options = {})
16
14
  template = Erubis::Eruby.new(body)
@@ -37,7 +37,7 @@
37
37
  <%- end -%>
38
38
  </table>
39
39
 
40
- <%= will_paginate(@message_requests) -%>
40
+ <%= paginate(@message_requests) -%>
41
41
  </div>
42
42
  </div>
43
43
 
@@ -33,7 +33,7 @@
33
33
  <%- end -%>
34
34
  </table>
35
35
 
36
- <%= will_paginate(@message_templates) -%>
36
+ <%= paginate(@message_templates) -%>
37
37
  </div>
38
38
  </div>
39
39
 
@@ -37,7 +37,7 @@
37
37
  </tr>
38
38
  </table>
39
39
  <%- end -%>
40
- <%= will_paginate(@messages) -%>
40
+ <%= paginate(@messages) -%>
41
41
  </div>
42
42
  </div>
43
43
 
@@ -1,3 +1,3 @@
1
1
  module EnjuMessage
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
@@ -0,0 +1,21 @@
1
+ module EnjuMessage
2
+ module Generators
3
+ class ViewsGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../../../../app/views', __FILE__)
5
+
6
+ def copy_files
7
+ directories = %w(
8
+ layouts
9
+ message_requests
10
+ message_templates
11
+ messages
12
+ notifier
13
+ )
14
+
15
+ directories.each do |dir|
16
+ directory dir, "app/views/#{dir}"
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
Binary file
@@ -1,3 +1,3 @@
1
- ����
1
+ ����
2
2
  idtype
3
3
  class_name subject_s
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
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-07-21 00:00:00.000000000 Z
12
+ date: 2012-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -201,84 +201,7 @@ files:
201
201
  - app/models/message.rb
202
202
  - app/models/message_request.rb
203
203
  - app/models/message_template.rb
204
- - app/views/baskets/edit.html.erb
205
- - app/views/baskets/index.html.erb
206
- - app/views/baskets/new.html.erb
207
- - app/views/baskets/show.html.erb
208
- - app/views/carrier_type_has_checkout_types/_form.html.erb
209
- - app/views/carrier_type_has_checkout_types/edit.html.erb
210
- - app/views/carrier_type_has_checkout_types/index.html.erb
211
- - app/views/carrier_type_has_checkout_types/new.html.erb
212
- - app/views/carrier_type_has_checkout_types/show.html.erb
213
- - app/views/checked_items/_checkouts.html.erb
214
- - app/views/checked_items/_list.html.erb
215
- - app/views/checked_items/edit.html.erb
216
- - app/views/checked_items/index.html.erb
217
- - app/views/checked_items/index.js.erb
218
- - app/views/checked_items/new.html.erb
219
- - app/views/checked_items/show.html.erb
220
- - app/views/checkins/_form.html.erb
221
- - app/views/checkins/_list.html.erb
222
- - app/views/checkins/edit.html.erb
223
- - app/views/checkins/index.html.erb
224
- - app/views/checkins/index.js.erb
225
- - app/views/checkins/new.html.erb
226
- - app/views/checkins/show.html.erb
227
- - app/views/checkout_stat_has_manifestations/_form.html.erb
228
- - app/views/checkout_stat_has_manifestations/edit.html.erb
229
- - app/views/checkout_stat_has_manifestations/index.html.erb
230
- - app/views/checkout_stat_has_manifestations/new.html.erb
231
- - app/views/checkout_stat_has_manifestations/show.html.erb
232
- - app/views/checkout_stat_has_users/_form.html.erb
233
- - app/views/checkout_stat_has_users/edit.html.erb
234
- - app/views/checkout_stat_has_users/index.html.erb
235
- - app/views/checkout_stat_has_users/new.html.erb
236
- - app/views/checkout_stat_has_users/show.html.erb
237
- - app/views/checkout_types/_form.html.erb
238
- - app/views/checkout_types/edit.html.erb
239
- - app/views/checkout_types/index.html.erb
240
- - app/views/checkout_types/new.html.erb
241
- - app/views/checkout_types/show.html.erb
242
- - app/views/checkouts/_form.html.erb
243
- - app/views/checkouts/_index.html.erb
244
- - app/views/checkouts/_index_overdue.html.erb
245
- - app/views/checkouts/_index_user.html.erb
246
- - app/views/checkouts/_list.html.erb
247
- - app/views/checkouts/edit.html.erb
248
- - app/views/checkouts/index.atom.builder
249
- - app/views/checkouts/index.csv.erb
250
- - app/views/checkouts/index.html.erb
251
- - app/views/checkouts/index.ics.erb
252
- - app/views/checkouts/index.rss.builder
253
- - app/views/checkouts/new.html.erb
254
- - app/views/checkouts/show.html.erb
255
- - app/views/circulation_statuses/_form.html.erb
256
- - app/views/circulation_statuses/edit.html.erb
257
- - app/views/circulation_statuses/index.html.erb
258
- - app/views/circulation_statuses/new.html.erb
259
- - app/views/circulation_statuses/show.html.erb
260
- - app/views/item_has_use_restrictions/edit.html.erb
261
- - app/views/item_has_use_restrictions/index.html.erb
262
- - app/views/item_has_use_restrictions/new.html.erb
263
- - app/views/item_has_use_restrictions/show.html.erb
264
204
  - app/views/layouts/messages.html.erb
265
- - app/views/lending_policies/_form.html.erb
266
- - app/views/lending_policies/edit.html.erb
267
- - app/views/lending_policies/index.html.erb
268
- - app/views/lending_policies/new.html.erb
269
- - app/views/lending_policies/show.html.erb
270
- - app/views/manifestation_checkout_stats/_form.html.erb
271
- - app/views/manifestation_checkout_stats/edit.html.erb
272
- - app/views/manifestation_checkout_stats/index.html.erb
273
- - app/views/manifestation_checkout_stats/new.html.erb
274
- - app/views/manifestation_checkout_stats/show.csv.erb
275
- - app/views/manifestation_checkout_stats/show.html.erb
276
- - app/views/manifestation_reserve_stats/_form.html.erb
277
- - app/views/manifestation_reserve_stats/edit.html.erb
278
- - app/views/manifestation_reserve_stats/index.html.erb
279
- - app/views/manifestation_reserve_stats/new.html.erb
280
- - app/views/manifestation_reserve_stats/show.csv.erb
281
- - app/views/manifestation_reserve_stats/show.html.erb
282
205
  - app/views/message_requests/edit.html.erb
283
206
  - app/views/message_requests/index.html.erb
284
207
  - app/views/message_requests/new.html.erb
@@ -297,48 +220,6 @@ files:
297
220
  - app/views/messages/show.html.erb
298
221
  - app/views/notifier/message_notification.en.text.erb
299
222
  - app/views/notifier/message_notification.ja.text.erb
300
- - app/views/reserve_stat_has_manifestations/_form.html.erb
301
- - app/views/reserve_stat_has_manifestations/edit.html.erb
302
- - app/views/reserve_stat_has_manifestations/index.html.erb
303
- - app/views/reserve_stat_has_manifestations/new.html.erb
304
- - app/views/reserve_stat_has_manifestations/show.html.erb
305
- - app/views/reserve_stat_has_users/_form.html.erb
306
- - app/views/reserve_stat_has_users/edit.html.erb
307
- - app/views/reserve_stat_has_users/index.html.erb
308
- - app/views/reserve_stat_has_users/new.html.erb
309
- - app/views/reserve_stat_has_users/show.html.erb
310
- - app/views/reserves/_form.html.erb
311
- - app/views/reserves/_new.html.erb
312
- - app/views/reserves/_new_user.html.erb
313
- - app/views/reserves/_title.html.erb
314
- - app/views/reserves/edit.html.erb
315
- - app/views/reserves/index.atom.builder
316
- - app/views/reserves/index.csv.erb
317
- - app/views/reserves/index.html.erb
318
- - app/views/reserves/index.rss.builder
319
- - app/views/reserves/new.html.erb
320
- - app/views/reserves/show.html.erb
321
- - app/views/use_restrictions/_form.html.erb
322
- - app/views/use_restrictions/edit.html.erb
323
- - app/views/use_restrictions/index.html.erb
324
- - app/views/use_restrictions/new.html.erb
325
- - app/views/use_restrictions/show.html.erb
326
- - app/views/user_checkout_stats/_form.html.erb
327
- - app/views/user_checkout_stats/edit.html.erb
328
- - app/views/user_checkout_stats/index.html.erb
329
- - app/views/user_checkout_stats/new.html.erb
330
- - app/views/user_checkout_stats/show.csv.erb
331
- - app/views/user_checkout_stats/show.html.erb
332
- - app/views/user_group_has_checkout_types/edit.html.erb
333
- - app/views/user_group_has_checkout_types/index.html.erb
334
- - app/views/user_group_has_checkout_types/new.html.erb
335
- - app/views/user_group_has_checkout_types/show.html.erb
336
- - app/views/user_reserve_stats/_form.html.erb
337
- - app/views/user_reserve_stats/edit.html.erb
338
- - app/views/user_reserve_stats/index.html.erb
339
- - app/views/user_reserve_stats/new.html.erb
340
- - app/views/user_reserve_stats/show.csv.erb
341
- - app/views/user_reserve_stats/show.html.erb
342
223
  - config/locales/translation_en.yml
343
224
  - config/locales/translation_ja.yml
344
225
  - config/routes.rb
@@ -352,6 +233,7 @@ files:
352
233
  - lib/enju_message/user.rb
353
234
  - lib/enju_message/version.rb
354
235
  - lib/enju_message.rb
236
+ - lib/generators/enju_message/views_generator.rb
355
237
  - lib/tasks/enju_message_tasks.rake
356
238
  - MIT-LICENSE
357
239
  - Rakefile
@@ -397,7 +279,6 @@ files:
397
279
  - spec/dummy/config/locales/en.yml
398
280
  - spec/dummy/config/routes.rb
399
281
  - spec/dummy/config.ru
400
- - spec/dummy/db/development.sqlite3
401
282
  - spec/dummy/db/migrate/001_create_patrons.rb
402
283
  - spec/dummy/db/migrate/080_create_library_groups.rb
403
284
  - spec/dummy/db/migrate/20080905191442_create_patron_types.rb
@@ -414,7 +295,6 @@ files:
414
295
  - spec/dummy/db/migrate/20111201163342_create_user_groups.rb
415
296
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
416
297
  - spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb
417
- - spec/dummy/db/production.sqlite3
418
298
  - spec/dummy/db/schema.rb
419
299
  - spec/dummy/db/test.sqlite3
420
300
  - spec/dummy/public/404.html
@@ -434,16 +314,16 @@ files:
434
314
  - spec/dummy/solr/conf/spellings.txt
435
315
  - spec/dummy/solr/conf/stopwords.txt
436
316
  - spec/dummy/solr/conf/synonyms.txt
437
- - spec/dummy/solr/data/test/index/_f.fdt
438
- - spec/dummy/solr/data/test/index/_f.fdx
439
- - spec/dummy/solr/data/test/index/_f.fnm
440
- - spec/dummy/solr/data/test/index/_f.frq
441
- - spec/dummy/solr/data/test/index/_f.nrm
442
- - spec/dummy/solr/data/test/index/_f.prx
443
- - spec/dummy/solr/data/test/index/_f.tii
444
- - spec/dummy/solr/data/test/index/_f.tis
317
+ - spec/dummy/solr/data/test/index/_n.fdt
318
+ - spec/dummy/solr/data/test/index/_n.fdx
319
+ - spec/dummy/solr/data/test/index/_n.fnm
320
+ - spec/dummy/solr/data/test/index/_n.frq
321
+ - spec/dummy/solr/data/test/index/_n.nrm
322
+ - spec/dummy/solr/data/test/index/_n.prx
323
+ - spec/dummy/solr/data/test/index/_n.tii
324
+ - spec/dummy/solr/data/test/index/_n.tis
445
325
  - spec/dummy/solr/data/test/index/segments.gen
446
- - spec/dummy/solr/data/test/index/segments_x
326
+ - spec/dummy/solr/data/test/index/segments_1d
447
327
  - spec/dummy/solr/data/test/spellchecker/segments.gen
448
328
  - spec/dummy/solr/data/test/spellchecker/segments_1
449
329
  - spec/factories/message.rb
@@ -531,7 +411,6 @@ test_files:
531
411
  - spec/dummy/config/locales/en.yml
532
412
  - spec/dummy/config/routes.rb
533
413
  - spec/dummy/config.ru
534
- - spec/dummy/db/development.sqlite3
535
414
  - spec/dummy/db/migrate/001_create_patrons.rb
536
415
  - spec/dummy/db/migrate/080_create_library_groups.rb
537
416
  - spec/dummy/db/migrate/20080905191442_create_patron_types.rb
@@ -548,7 +427,6 @@ test_files:
548
427
  - spec/dummy/db/migrate/20111201163342_create_user_groups.rb
549
428
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
550
429
  - spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb
551
- - spec/dummy/db/production.sqlite3
552
430
  - spec/dummy/db/schema.rb
553
431
  - spec/dummy/db/test.sqlite3
554
432
  - spec/dummy/public/404.html
@@ -568,16 +446,16 @@ test_files:
568
446
  - spec/dummy/solr/conf/spellings.txt
569
447
  - spec/dummy/solr/conf/stopwords.txt
570
448
  - spec/dummy/solr/conf/synonyms.txt
571
- - spec/dummy/solr/data/test/index/_f.fdt
572
- - spec/dummy/solr/data/test/index/_f.fdx
573
- - spec/dummy/solr/data/test/index/_f.fnm
574
- - spec/dummy/solr/data/test/index/_f.frq
575
- - spec/dummy/solr/data/test/index/_f.nrm
576
- - spec/dummy/solr/data/test/index/_f.prx
577
- - spec/dummy/solr/data/test/index/_f.tii
578
- - spec/dummy/solr/data/test/index/_f.tis
449
+ - spec/dummy/solr/data/test/index/_n.fdt
450
+ - spec/dummy/solr/data/test/index/_n.fdx
451
+ - spec/dummy/solr/data/test/index/_n.fnm
452
+ - spec/dummy/solr/data/test/index/_n.frq
453
+ - spec/dummy/solr/data/test/index/_n.nrm
454
+ - spec/dummy/solr/data/test/index/_n.prx
455
+ - spec/dummy/solr/data/test/index/_n.tii
456
+ - spec/dummy/solr/data/test/index/_n.tis
579
457
  - spec/dummy/solr/data/test/index/segments.gen
580
- - spec/dummy/solr/data/test/index/segments_x
458
+ - spec/dummy/solr/data/test/index/segments_1d
581
459
  - spec/dummy/solr/data/test/spellchecker/segments.gen
582
460
  - spec/dummy/solr/data/test/spellchecker/segments_1
583
461
  - spec/factories/message.rb
@@ -1,30 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.basket')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= form_for(@basket) do |f| -%>
6
- <%= f.error_messages -%>
7
- <div class="field">
8
- <%= f.label t('activerecord.models.user') -%><br />
9
- <%= @basket.user.username -%>
10
- <%= f.hidden_field :user_id -%>
11
- </div>
12
-
13
- <div class="field">
14
- <%= f.label :note -%><br />
15
- <%= f.text_area :note, :class => 'resource_textarea' -%>
16
- </div>
17
-
18
- <div class="actions">
19
- <%= f.submit %>
20
- </div>
21
- <%- end -%>
22
- </div>
23
- </div>
24
-
25
- <div id="submenu" class="ui-corner-all">
26
- <ul>
27
- <li><%= link_to t('page.show'), basket_path(@basket) -%></li>
28
- <li><%= link_to t('page.back'), user_baskets_path(@basket.user) -%></li>
29
- </ul>
30
- </div>
@@ -1,31 +0,0 @@
1
- <div id="content_list">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.basket')) -%></h1>
3
- <div id="content_detail" class="ui-corner-all">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.user') -%></th>
8
- <th><%= t('activerecord.attributes.basket.note') -%></th>
9
- <th><%= t('page.updated_at') -%></th>
10
- </tr>
11
-
12
- <%- @baskets.each do |basket| -%>
13
- <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= basket.user.username -%></td>
15
- <td><%= basket.note -%></td>
16
- <td><%= basket.updated_at -%></td>
17
- <td><%= link_to t('page.show'), basket -%></td>
18
- </tr>
19
- <%- end -%>
20
- </table>
21
-
22
- <%= will_paginate(@baskets) -%>
23
-
24
- </div>
25
- </div>
26
-
27
- <div id="submenu" class="ui-corner-all">
28
- <ul>
29
- <li><%= link_to t('page.new', :model => t('activerecord.models.basket')), new_basket_path -%></li>
30
- </ul>
31
- </div>