Sha256: 864b883e92bf904cec72cc86538da435b9f04b637019c6d3f401291f3bfe48d1
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
require "i18n" require "forwardable" module Form autoload :Builder, "form/builder" autoload :Component, "form/component" autoload :Tag, "form/tag" autoload :Version, "form/version" # Lazily add locale file to I18n. # def self.add_locale(locale) I18n.load_path << File.expand_path("../form/locales/#{locale}.yml", __FILE__) end add_locale :en # Initialize a new Form::Builder object. # # form = Form.new(params[:user], "user") # def self.new(data = nil, base_name = nil) Builder.new(data, base_name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
form-0.0.1.alpha1 | lib/form.rb |