lib/picky/application.rb in picky-3.0.0.pre1 vs lib/picky/application.rb in picky-3.0.0.pre2
- old
+ new
@@ -173,11 +173,14 @@
Tokenizers::Query.default = Tokenizers::Query.new(options)
end
# Routes.
#
- delegate :route, :to => :rack_adapter
+ def route options
+ raise "Warning: block passed into #route method, not into Search.new!" if block_given?
+ rack_adapter.route options
+ end
# A Picky application implements the Rack interface.
#
# Delegates to its routing to handle a request.
#
@@ -192,11 +195,10 @@
end
# Reloads & finalizes the apps.
#
def reload
- Loader.load_user 'app' # Sinatra app_file.
- Loader.load_user 'app/logging' # Standard Picky logging.
+ Loader.load_user 'app' # Sinatra app_file. TODO Needed?
Loader.load_user 'app/application' # Standard Picky appfile.
finalize_apps
exclaim "Application #{apps.map(&:name).join(', ')} loaded."
end
\ No newline at end of file