enju_circulation 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ end
14
14
 
15
15
  RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'EnjuSubject'
17
+ rdoc.title = 'EnjuCirculation'
18
18
  rdoc.options << '--line-numbers'
19
19
  rdoc.rdoc_files.include('README.rdoc')
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -19,7 +19,6 @@ class Reserve < ActiveRecord::Base
19
19
  belongs_to :manifestation, :validate => true
20
20
  belongs_to :librarian, :class_name => 'User', :validate => true
21
21
  belongs_to :item, :validate => true
22
- has_one :inter_library_loan
23
22
  belongs_to :request_status_type
24
23
 
25
24
  validates_associated :user, :librarian, :item, :request_status_type, :manifestation
@@ -247,6 +246,10 @@ class Reserve < ActiveRecord::Base
247
246
  def checkout
248
247
  self.update_attributes!({:request_status_type => RequestStatusType.where(:name => 'Available For Pickup').first, :checked_out_at => Time.zone.now})
249
248
  end
249
+
250
+ if defined?(EnjuInterLibraryLoan)
251
+ has_one :inter_library_loan
252
+ end
250
253
  end
251
254
 
252
255
  # == Schema Information
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.0.33"
2
+ VERSION = "0.0.34"
3
3
  end
@@ -61,15 +61,13 @@ class Item < ActiveRecord::Base
61
61
  'User Signature Required',
62
62
  'Limited Circulation, Normal Loan Period'
63
63
  ]
64
- scope :for_checkout, includes(:circulation_status, :use_restriction)
65
- .where(
64
+ scope :for_checkout, includes(:circulation_status, :use_restriction).where(
66
65
  'circulation_statuses.name' => FOR_CHECKOUT_CIRCULATION_STATUS,
67
66
  'use_restrictions.name' => FOR_CHECKOUT_USE_RESTRICTION
68
67
  ).where('item_identifier IS NOT NULL')
69
68
  scope :removed, includes(:circulation_status).where('circulation_statuses.name' => 'Removed')
70
69
  has_many :checkouts
71
70
  has_many :reserves
72
- has_many :reserved_patrons, :through => :reserves, :class_name => 'Patron'
73
71
  has_many :checked_items, :dependent => :destroy
74
72
  has_many :baskets, :through => :checked_items
75
73
  belongs_to :circulation_status, :validate => true
@@ -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 = {}
Binary file
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:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_circulation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
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-05-01 00:00:00.000000000 Z
12
+ date: 2012-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails