Remove useless method call
This commit is contained in:
parent
4747cd95c1
commit
57366b7fd6
@ -103,7 +103,7 @@ module RablRails
|
||||
def node(name, options = {}, &block)
|
||||
condition = options[:if]
|
||||
|
||||
if condition.present?
|
||||
if condition
|
||||
if condition.is_a?(Proc)
|
||||
@template[name] = [condition, block]
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user