Sha256: 75583a244f71029367a79e29822ad869a7b5429b4028857b5b6d2e6fa97ab236

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

module Attorney
  module ApplicationHelper
    def attorney_mounted_path
      Rails.application.routes.named_routes[:attorney].format(nil)
    end

    def show_notice(notice)
      if notice.present?
        content_tag :p, notice, id: 'notice', class: 'alert alert-primary', role: 'alert'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attorney-1.0.0 app/helpers/attorney/application_helper.rb