add backwards compatibility settings method

This commit is contained in:
Thomas Reynolds 2011-11-23 10:59:37 -08:00
parent a65899672f
commit f363e4f7a1
2 changed files with 6 additions and 1 deletions

View file

@ -216,6 +216,11 @@ class Middleman::Base
public public
# Backwards compatibilty with old Sinatra template interface
def settings
self
end
def logging? def logging?
logging logging
end end

View file

@ -49,6 +49,6 @@ Gem::Specification.new do |s|
s.add_development_dependency("rake", ["~> 0.9.2"]) s.add_development_dependency("rake", ["~> 0.9.2"])
s.add_development_dependency("rspec", ["~> 2.7.0"]) s.add_development_dependency("rspec", ["~> 2.7.0"])
s.add_development_dependency("jquery-rails") s.add_development_dependency("jquery-rails")
s.add_development_dependency("bootstrap-rails") s.add_development_dependency("bootstrap-rails", ["0.0.5"])
end end