app/models/entity_visibility.rb
def visible_as_of?(now = Time.current)
    return true if visibility_visible?

    return false if visibility_hidden?

    visible_after?(now) && visible_until?(now)
  end
# When scoping, it only makes sense to scope by `hidden`
# or `visible` for the specified time.
When scoping, it only makes sense to scope by `hidden`
or `visible` for the specified time.
When scoping it only makes sense to scope by ` hidden ` or ` visible ` for the specified time .
def visible_as_of?(now = Time.current)
    return true if visibility_visible?
    return false if visibility_hidden?
    visible_after?(now) && visible_until?(now)
  end
def visible_as_of? ( now = Time . current ) return true if visibility_visible? return false if visibility_hidden? visible_after? ( now ) && visible_until? ( now ) end
When scoping, it only makes sense to scope by `hidden`
or `visible` for the specified time.
When scoping it only makes sense to scope by ` hidden ` or ` visible ` for the specified time .
now
current