Skip to content

Commit

Permalink
attempt to remove Sinatra::Base#options deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher M. Hobbs committed May 7, 2012
1 parent c6f3dc5 commit 4b620ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra-authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def use_layout?

#BECAUSE sinatra 9.1.1 can't load views from different paths properly
def get_view_as_string(filename)
view = options.sinatra_authentication_view_path + filename
view = settings.sinatra_authentication_view_path + filename
data = ""
f = File.open(view, "r")
f.each_line do |line|
Expand Down

0 comments on commit 4b620ad

Please sign in to comment.