enju_event 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/event.rb +1 -1
- data/app/models/event_import_file.rb +2 -2
- data/lib/enju_event/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +2 -2
data/app/models/event.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
class Event < ActiveRecord::Base
|
3
3
|
attr_accessible :library_id, :event_category_id, :name, :note, :start_at,
|
4
|
-
:
|
4
|
+
:end_at, :all_day, :display_name
|
5
5
|
|
6
6
|
scope :closing_days, includes(:event_category).where('event_categories.name = ?', 'closed')
|
7
7
|
scope :on, lambda {|datetime| where('start_at >= ? AND start_at < ?', datetime.beginning_of_day, datetime.tomorrow.beginning_of_day + 1)}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class EventImportFile < ActiveRecord::Base
|
2
|
-
attr_accessible :event_import
|
2
|
+
attr_accessible :event_import, :edit_mode
|
3
3
|
include ImportFile
|
4
|
-
default_scope :order => 'id DESC'
|
4
|
+
default_scope :order => 'event_import_files.id DESC'
|
5
5
|
scope :not_imported, where(:state => 'pending')
|
6
6
|
scope :stucked, where('created_at < ? AND state = ?', 1.hour.ago, 'pending')
|
7
7
|
|
data/lib/enju_event/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
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-
|
12
|
+
date: 2012-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|