Sha256: c9501d949180d9d0a1446164d7a73119c61ad988b16b5d7750c539c9cb7b1bf5

Contents?: true

Size: 475 Bytes

Versions: 8

Compression:

Stored size: 475 Bytes

Contents

module EaselHelpers
  module Helpers
    module RjsHelper

      def inline_flash(page, flash, options = {})
        container_id = options[:container] || "flash-container"
        current_flash = flash

        flash.discard unless options[:keep_flash]

        if options[:replace]
          page.replace_html container_id, messages(current_flash)
        else
          page.insert_html :top, container_id, messages(current_flash)
        end
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fusionary-easel_helpers-0.2.11 lib/easel_helpers/helpers/rjs_helper.rb
fusionary-easel_helpers-0.2.12 lib/easel_helpers/helpers/rjs_helper.rb
fusionary-easel_helpers-0.2.13 lib/easel_helpers/helpers/rjs_helper.rb
fusionary-easel_helpers-0.2.14 lib/easel_helpers/helpers/rjs_helper.rb
fusionary-easel_helpers-0.2.16 lib/easel_helpers/helpers/rjs_helper.rb
fusionary-easel_helpers-0.2.17 lib/easel_helpers/helpers/rjs_helper.rb
fusionary-easel_helpers-0.3.0 lib/easel_helpers/helpers/rjs_helper.rb
easel_helpers-0.3.0 lib/easel_helpers/helpers/rjs_helper.rb