Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

false.present? does not equal true

  • Loading branch information...
commit bc70c892f061c8ed1fc7941a0f6de586dd474031 1 parent 22e4919
@johnmcaliley authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/rapid_transit/base.rb
View
8 lib/rapid_transit/base.rb
@@ -16,12 +16,14 @@ def self.delimiter
end
# Set whether to strip whitespace from column values
- def self.strip_columns(strip)
- @strip = strip
+ def self.strip_columns(strip_val)
+ @strip = strip_val
end
def self.strip
- @strip.present? ? @strip : @strip = true
+ #can't do ||= b/c its boolean. if strip was false it would turn into true
+ @strip = true if @strip.nil?
+ @strip
end
# Set a block to execute on error
Please sign in to comment.
Something went wrong with that request. Please try again.