Sha256: 63a3423b28fbf60d93b146b7870d0e0c51c5660204153cd30401b5705c6581cb
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
module AutoError class AuthContext def initialize( env ) AutoError::Config.auth_helpers.each do |mod_name| mod = Rails.application.class.qualified_const_get(mod_name) class_eval do send( :include, mod ) mod.instance_methods.each do |imeth| alias :"#{imeth}_without_env" :"#{imeth}" send( :define_method, imeth ) do method( :"#{imeth}_without_env" ).to_proc.bind( env ) end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auto_error-0.0.3 | lib/auto_error/auth_context.rb |
auto_error-0.0.2 | lib/auto_error/auth_context.rb |
auto_error-0.0.1 | lib/auto_error/auth_context.rb |