module Spyro::ActionViewExtension::ReleaseHelper

Public Instance Methods

release_at(date, &block) click to toggle source

Helper de l’enfer

# File lib/spyro/helpers/action_view_extension.rb, line 606
def release_at date, &block
  if date.past? or not Rails.env.production? or User.current_user.try(:has_role?, :intrateam)
    block.call
  end
end