haru/redmine_wiki_extensions

View on GitHub
lib/wiki_extensions_emoticons.rb

Summary

Maintainability
A
0 mins
Test Coverage
# To change this template, choose Tools | Templates
# and open the template in the editor.
require "yaml"

module WikiExtensionsEmoticons
  YAML_FILE = File.join(File.dirname(__FILE__), '../config/emoticons.yml')
  class Emoticons
    def emoticons
      @@emoticons ||= YAML.load_file(YAML_FILE)
    end
  end
end