Sha256: 632c497ec3986c152c306bce5b36f0bf46a3b8caa977922eb6a04c5c610c99c2
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
require "transaction_isolation" require "transaction_retry" require "active_attr" require "lev/version" require "lev/exceptions" require "lev/routine_nesting" require "lev/better_active_model_errors" require "lev/handler" require "lev/handle_with" require "lev/handler_helper" require "lev/handler/error" require "lev/handler/errors" require "lev/handler/error_transferer" require "lev/handler/error_translator" require "lev/form_builder" require "lev/algorithm" require "lev/delegate_to_algorithm" require "lev/transaction_isolation" module Lev class << self ########################################################################### # # Configuration machinery. # # To configure Lev, put the following code in your applications # initialization logic (eg. in the config/initializers in a Rails app) # # Lev.configure do |config| # config.form_error_class = 'fancy_error' # ... # end # def configure yield configuration end def configuration @configuration ||= Configuration.new end class Configuration # This HTML class is added to form fields that caused errors attr_accessor :form_error_class def initialize @form_error_class = 'error' super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lev-0.0.1 | lib/lev.rb |