publishable 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/publishable.rb CHANGED
@@ -10,9 +10,9 @@ module Publishable
10
10
 
11
11
  named_scope :published, lambda { |*args|
12
12
  if args.first.nil? || TRUE_VALUES.include?(args.first)
13
- { :conditions => ["#{quoted_table_name}.'#{publishable_column}' IS NOT NULL AND #{quoted_table_name}.'#{publishable_column}' <= ?", Time.now.utc] }
13
+ { :conditions => ["#{quoted_table_name}.#{publishable_column} IS NOT NULL AND #{quoted_table_name}.#{publishable_column} <= ?", Time.now.utc] }
14
14
  else
15
- { :conditions => ["#{quoted_table_name}.'#{publishable_column}' IS NULL OR #{quoted_table_name}.'#{publishable_column}' > ?", Time.now.utc] }
15
+ { :conditions => ["#{quoted_table_name}.#{publishable_column} IS NULL OR #{quoted_table_name}.#{publishable_column} > ?", Time.now.utc] }
16
16
  end
17
17
  }
18
18
 
data/publishable.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{publishable}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Linkhorst"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publishable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Linkhorst