Sha256: bf853a278dca0237106e933f02357201a77b0d93c17be46aa2574f815d5690ad

Contents?: true

Size: 238 Bytes

Versions: 5

Compression:

Stored size: 238 Bytes

Contents

module Voltron
  module FlashHelper

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

    alias_method :flashes, :voltron_flashes

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voltron-flash-0.1.3 app/helpers/voltron/flash_helper.rb
voltron-flash-0.1.1 app/helpers/voltron/flash_helper.rb
voltron-flash-0.1.4 app/helpers/voltron/flash_helper.rb
voltron-flash-0.1.2 app/helpers/voltron/flash_helper.rb
voltron-flash-0.1.5 app/helpers/voltron/flash_helper.rb