Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making default options actually work when using plan

  • Loading branch information...
commit 9db1cf234e692ac48e36e80ba7d801dd54a9fcc5 1 parent d62c4c1
Jack Chen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/metlinkr/journey.rb
4 lib/metlinkr/journey.rb
View
@@ -9,10 +9,10 @@ class Journey
attr_reader :from, :to, :options, :trips
- def initialize(from, to, options = {:methods => :all, :ignore_earlier_trip => true, :limit => 1})
+ def initialize(from, to, options = nil)
@from = from
@to = to
- @options = options
+ @options = options || {:methods => :all, :ignore_earlier_trip => true, :limit => 1}
end
def plan
Please sign in to comment.
Something went wrong with that request. Please try again.