Module: Curate::DeviseUserShim::ToAdaptorShim
- Defined in:
- app/models/curate/devise_user_shim.rb
Overview
Because Devise is violating the Law of Demeter via the following line: ‘resource_class.to_adapter.get!(*args)` we have this wonderful work around
Instance Method Summary collapse
Instance Method Details
#get!(*args) ⇒ Object
34 35 36 |
# File 'app/models/curate/devise_user_shim.rb', line 34 def get!(*args) DeviseUserShim.wrapping_class.new(super(*args)) end |