Sha256: 00228b41d4f7e36cb66f541a5adff16df5ab4fa94866b602b16eaaf4801e9b19
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
require "action_view" require "transaction_isolation" require "transaction_retry" require "active_attr" require "lev/version" require "lev/utilities" require "lev/exceptions" require "lev/better_active_model_errors" require "lev/term_mapper" require "lev/routine" require "lev/handler" require "lev/handle_with" require "lev/handler_helper" require "lev/error" require "lev/errors" require "lev/error_transferer" require "lev/error_translator" require "lev/form_builder" require "lev/delegate_to_routine" 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 attr_accessor :security_transgression_error def initialize @form_error_class = 'error' @security_transgression_error = Lev::SecurityTransgression super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lev-1.0.1 | lib/lev.rb |
lev-1.0.0 | lib/lev.rb |