Module: Avo::Fields::Concerns::UseResource
- Extended by:
- ActiveSupport::Concern
- Included in:
- BelongsToField, HasBaseField
- Defined in:
- lib/avo/fields/concerns/use_resource.rb
Instance Method Summary collapse
Instance Method Details
#use_resource ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/avo/fields/concerns/use_resource.rb', line 7 def use_resource Avo.resource_manager.get_resource @use_resource rescue # On boot we eager load the resources before the app is set. # Because of that, we don't have a resource manager. nil end |