lib/landable.rb in landable-1.13.2 vs lib/landable.rb in landable-1.14.0
- old
+ new
@@ -18,13 +18,15 @@
autoload :Layout, 'landable/layout'
autoload :Partial, 'landable/partial'
autoload :Seeds, 'landable/seeds'
def self.configuration
- @configuration ||= Configuration.new
+ @configuration ||= Configuration.new(@file_path)
end
- def self.configure
+ def self.configure(path = nil)
+ @file_path = path
+
yield configuration if block_given?
configuration
end
end