Skip to content

Commit

Permalink
Merge pull request #5 from y-yagi/fix_ruby_warning
Browse files Browse the repository at this point in the history
Fix ruby warning
  • Loading branch information
willnet committed Dec 14, 2017
2 parents 00a7025 + 7363fb1 commit e4ea999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yuba/rendering.rb
Expand Up @@ -17,7 +17,7 @@ def _protected_ivars
end

def view_model_assigns
return {} unless @_view_model
return {} unless defined?(@_view_model)
# TODO: get all public methods between self and Yuba::ViewModel
# now get only in self
methods = @_view_model.public_methods(false)
Expand Down

0 comments on commit e4ea999

Please sign in to comment.