kelredd-useful 0.1.8.4 → 0.1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,7 @@ module Sinatra
|
|
12
12
|
#
|
13
13
|
# foo will be rendered once for each element in the array, passing in a local variable named "foo"
|
14
14
|
# Usage: partial :foo, :collection => @my_foos
|
15
|
-
def partial(template,
|
16
|
-
options = args.extract_options!
|
15
|
+
def partial(template, options={})
|
17
16
|
options.merge!(:layout => false)
|
18
17
|
path = template.to_s.split(File::SEPARATOR)
|
19
18
|
object = path[-1].to_sym
|
data/lib/useful/version.rb
CHANGED