Skip to content

Commit

Permalink
"warning: `*' interpreted as argument prefix"
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jul 19, 2015
1 parent 2949fe2 commit 0102fb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/jbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def set!(key, value = BLANK, *args)

def method_missing(*args)
if ::Kernel.block_given?
set! *args, &::Proc.new
set!(*args, &::Proc.new)
else
set! *args
set!(*args)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/jbuilder/jbuilder_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class << self

def initialize(context, *args)
@context = context
super *args
super(*args)
end

def partial!(*args)
if args.one? && _is_active_model?(args.first)
_render_active_model_partial args.first
else
_render_explicit_partial *args
_render_explicit_partial(*args)
end
end

Expand Down

1 comment on commit 0102fb3

@rwz
Copy link
Collaborator

@rwz rwz commented on 0102fb3 Aug 23, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where was this warning coming from?

Please sign in to comment.