Sha256: 4ab4b3573ada26937fee54f49a622e4b9f1189e08e38a3cda2055d443ca71fb0

Contents?: true

Size: 505 Bytes

Versions: 21

Compression:

Stored size: 505 Bytes

Contents

module Galakei
  module HelperMethods
    include ActionView::Helpers::RawOutputHelper
    def self.included(klass)
      klass.helper_method :galakei?
      klass.helper_method :emoji_table
    end 
    protected

    def galakei?
      request.galakei?
    end

    def emoji_table
      if request.docomo?
        EmojiTable.docomo
      elsif request.softbank?
        EmojiTable.softbank
      elsif request.au?
        EmojiTable.au
      else
        EmojiTable.unicode
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
galakei-0.11.3 lib/galakei/helper_methods.rb
galakei-0.11.2 lib/galakei/helper_methods.rb
galakei-0.11.1 lib/galakei/helper_methods.rb
galakei-0.11.0 lib/galakei/helper_methods.rb
galakei-0.10.1 lib/galakei/helper_methods.rb
galakei-0.10.0 lib/galakei/helper_methods.rb
galakei-0.9.1 lib/galakei/helper_methods.rb
galakei-0.9.0 lib/galakei/helper_methods.rb
galakei-0.8.1 lib/galakei/helper_methods.rb
galakei-0.8.0 lib/galakei/helper_methods.rb
galakei-0.7.3 lib/galakei/helper_methods.rb
galakei-0.7.2 lib/galakei/helper_methods.rb
galakei-0.7.1 lib/galakei/helper_methods.rb
galakei-0.7.0 lib/galakei/helper_methods.rb
galakei-0.6.6 lib/galakei/helper_methods.rb
galakei-0.6.5 lib/galakei/helper_methods.rb
galakei-0.6.4 lib/galakei/helper_methods.rb
galakei-0.6.3 lib/galakei/helper_methods.rb
galakei-0.6.2 lib/galakei/helper_methods.rb
galakei-0.6.1 lib/galakei/helper_methods.rb