Sha256: 0b8f10b7128242a9fedfadedcbf561bf5bcb41f9440ba56036667339252188c8
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
require "enumerize" require "human_attributes/engine" module HumanAttributes extend self # You can add, in this module, your own configuration options as in the example below... # # attr_writer :my_option # # def my_option # return "Default Value" unless @my_option # @my_option # end # # Then, you can customize the default behaviour (typically in a Rails initializer) like this: # # HumanAttributes.setup do |config| # config.root_url = "Another value" # end def setup yield self require "human_attributes" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
human_attributes-0.2.0 | lib/human_attributes.rb |
human_attributes-0.1.1 | lib/human_attributes.rb |
human_attributes-0.1.0 | lib/human_attributes.rb |