acts_as_historical 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_historical}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hasclass"]
@@ -16,11 +16,11 @@ module ActsAsHistorical
16
16
  #
17
17
  def acts_as_historical(opts = {})
18
18
  configuration = {
19
- :date_column => "snapshot_date",
19
+ # :date_column => "snapshot_date",
20
20
  :days => :all_days,
21
21
  :scope => nil
22
22
  }
23
- configuration.update(options) if opts.is_a?(Hash)
23
+ configuration.update(opts) if opts.is_a?(Hash)
24
24
 
25
25
  send :include, InstanceMethods
26
26
  send :extend, DynamicClassMethods
@@ -32,7 +32,7 @@ module ActsAsHistorical
32
32
  send :extend, WeekDays::ClassMethods
33
33
  end
34
34
  self.cattr_accessor :historical_date_col, :historical_scope, :only_weekdays
35
- self.historical_date_col = configuration[:date_column]
35
+ self.historical_date_col = 'snapshot_date' #configuration[:date_column]
36
36
  self.historical_scope = configuration[:scope]
37
37
 
38
38
  order_desc = "#{self.historical_date_col_sql} DESC"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_historical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hasclass