Sha256: 9b029c7cc3d59a86fc444ad67f67da5b79a8f90219db7785745093fe3a0c3011

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

module Mtdevise
  module ApplicationHelper
  
    # Helper for Page Title
    def phc_title(phc_page_title)
      content_for :phc_title, phc_page_title.to_s
    end
    
    # Helper for Page Title Tag
    def phc_title_tagline(phc_page_title_tagline)
      content_for :phc_title_tagline, phc_page_title_tagline.to_s
    end
    
    # Bootstrap Notification System
    def flash_class(level)
      case level.to_sym
        when :notice then "alert alert-info"
        when :success then "alert alert-success"
        when :error then "alert alert-danger"
        when :alert then "alert alert-warning"
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mtdevise-5.0.1 app/helpers/mtdevise/application_helper.rb