enju_circulation 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  <%- if params[:view] == 'overdue' -%><%= ('Overdue items') -%><%- else -%><%= ('Checkout items') -%><%- end -%> (created_at: <%= Time.now -%>)<%= "\n" -%>
2
2
  <%- @checkouts.each do |checkout| -%>
3
- "<%=h checkout.user_username -%>","<%=h checkout.item.item_identifier -%>","<%=h checkout.item.manifestation.original_title -%>","<%=h checkout.created_at -%>","<%= checkout.due_date -%>"<%= "\n" -%>
3
+ "<%=h checkout.user.try(:username) -%>","<%=h checkout.item.item_identifier -%>","<%=h checkout.item.manifestation.original_title -%>","<%=h checkout.created_at -%>","<%= checkout.due_date -%>"<%= "\n" -%>
4
4
  <%- end -%>
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
Binary file
@@ -0,0 +1,13 @@
1
+ module ImportFile
2
+ def self.included(base)
3
+ base.extend ClassMethods
4
+ end
5
+
6
+ module ClassMethods
7
+ def expire
8
+ self.stucked.find_each do |file|
9
+ file.destroy
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,6 +1,7 @@
1
1
  require 'nkf'
2
2
  require 'enju_leaf/calculate_stat'
3
3
  require 'enju_leaf/expire_editable_fragment'
4
+ require 'enju_leaf/import_file'
4
5
  require 'enju_leaf/master_model'
5
6
  require 'enju_leaf/localized_name'
6
7
  require 'enju_leaf/url_validator'