Sha256: 9fb546574e6479e64b01f56cd59890a6a4d8b595b8975f97c12e9938bf370782

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

module Voltron
  module FlashHelper

    def voltron_flashes(*classes)
      render template: 'voltron/flash/flashes', locals: { container_class: classes.flatten.compact.join(' ') }
    end

    alias_method :flashes, :voltron_flashes

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voltron-flash-0.1.6 app/helpers/voltron/flash_helper.rb
voltron-flash-0.1.8 app/helpers/voltron/flash_helper.rb
voltron-flash-0.1.7 app/helpers/voltron/flash_helper.rb