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

    return true 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 hidden_as_of?(now = Time.current)
    return false if visibility_visible?
    return true if visibility_hidden?
    !(visible_after?(now) && visible_until?(now))
  end
def hidden_as_of? ( now = Time . current ) return false if visibility_visible? return true 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