Sha256: 555816511125e09cf640afba4c138c8bd6cff235f172a586e644d820ce0d8b58
Contents?: true
Size: 337 Bytes
Versions: 32
Compression:
Stored size: 337 Bytes
Contents
class Pulitzer::PostTypeVersionsController::ChangeState def initialize(ptv,state_change) @ptv, @state_change = ptv, state_change.to_sym end def call sanitize_state_change or return false @ptv.send @state_change end def sanitize_state_change return [:publish,:retire,:preview].include? @state_change end end
Version data entries
32 entries across 32 versions & 1 rubygems