Skip to content

Commit

Permalink
Merge pull request #345 from jessedoyle/backwards-compatible-environment
Browse files Browse the repository at this point in the history
Backwards Compatible Dotenv::Environment
  • Loading branch information
Andrew Nordman authored Jun 21, 2018
2 parents d0c55dc + 6894e83 commit b7dc48e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dotenv/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ module Dotenv
class Environment < Hash
attr_reader :filename

def initialize(filename, is_load)
def initialize(filename, is_load = false)
@filename = filename
load(is_load)
end

def load(is_load)
def load(is_load = false)
update Parser.call(read, is_load)
end

Expand Down

0 comments on commit b7dc48e

Please sign in to comment.