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