kelredd-useful 0.1.8.4 → 0.1.8.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -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