Module: RactorRailsShim::FallbackBuilder::ValueLookup::RailsSend
- Defined in:
- lib/ractor_rails_shim/roles/fallback_builder.rb
Overview
Rails module accessors — for owner_name == "Rails": the value may live in the @ivar set by Rails' own writer or lazy-init'd by Rails' own reader. Read via the actual accessor in main.
Class Method Summary collapse
Class Method Details
.lookup(owner_name, attr_name, _ies_key) ⇒ Object
178 179 180 181 182 183 |
# File 'lib/ractor_rails_shim/roles/fallback_builder.rb', line 178 def self.lookup(owner_name, attr_name, _ies_key, **) return nil unless owner_name == "Rails" && defined?(::Rails) ::Rails.public_send(attr_name) if ::Rails.respond_to?(attr_name, false) rescue StandardError nil end |