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 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
- :event_at, :all_day, :display_name
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
 
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
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.20
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-27 00:00:00.000000000 Z
12
+ date: 2012-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails