Module: StatusQuerier
- Defined in:
- lib/status_querier.rb,
lib/status_querier/querier.rb,
lib/status_querier/version.rb
Defined Under Namespace
Constant Summary collapse
- SUPPORTED_STATUSES =
%i(pending preview live expired invalid disabled).freeze
- ALL =
:all
- WHITELIST =
(SUPPORTED_STATUSES + [ALL]).freeze
- DEFAULT_LISTING =
:default_listing
- VERSION =
'1.2.4'
Class Method Summary collapse
Class Method Details
.allow?(status) ⇒ Boolean
14 15 16 |
# File 'lib/status_querier.rb', line 14 def self.allow?(status) WHITELIST.include?(status) end |