lib/phlex/rails/layout.rb in phlex-rails-1.2.1 vs lib/phlex/rails/layout.rb in phlex-rails-1.2.2
- old
+ new
@@ -36,17 +36,16 @@
end
end
def self.included(klass)
unless klass < Phlex::HTML
- raise Phlex::ArgumentError,
- "👋 #{name} should only be included into Phlex::HTML classes."
+ raise Phlex::ArgumentError.new("👋 #{name} should only be included into Phlex::HTML classes.")
end
klass.extend(Interface)
end
- def render(view_context, *args, **kwargs, &block)
+ def render(view_context = nil, *args, **kwargs, &block)
if @_context
super
else
call(view_context: view_context) do |yielded|
case yielded