Sha256: b335e85e70df9c89e52df26ab93fb86b35ffef89a48c05002ff8d847cbd2f955

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

def followable?
  false
end

def ok_to_read?
  left.ok_to_read?
end

def history?
  false
end

event :remove_codename, :prepare_to_validate, on: :delete, when: :codename? do
  # load file before deleting codename otherwise it will fail later
  attachment
  self.codename = nil
end

format do
  def outputter
    card.left
  end

  view :not_found do
    return super() unless update_asset_output_live?

    root.error_status = 302
    outputter.update_asset_output_live
  end

  def update_asset_output_live?
    outputter.is_a?(Abstract::AssetOutputter) && !outputter.locked?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
card-mod-assets-0.18.1 set/right/asset_output.rb
card-mod-assets-0.18.0 set/right/asset_output.rb
card-mod-assets-0.17.0 set/right/asset_output.rb