lib/avo/concerns/is_visible.rb in avo-3.0.0.pre3 vs lib/avo/concerns/is_visible.rb in avo-3.0.0.pre4
- old
+ new
@@ -4,10 +4,10 @@
module IsVisible
attr_accessor :visible
def visible?
# Default to true
- return true unless visible.present?
+ return true if visible.nil?
Avo::ExecutionContext.new(target: visible, resource: @resource).handle
end
end
end