Module: Praxis::Extensions::FieldExpansion

Extended by:
ActiveSupport::Concern
Included in:
Rendering
Defined in:
lib/praxis/extensions/field_expansion.rb

Defined Under Namespace

Modules: ActionDefinitionExtension

Instance Method Summary collapse

Instance Method Details

#expanded_fieldsObject



12
13
14
15
16
17
18
# File 'lib/praxis/extensions/field_expansion.rb', line 12

def expanded_fields
  @expanded_fields ||=
    begin
      expansion_filter = respond_to?(:display_attribute?) ? method(:display_attribute?) : nil
      request.action.expanded_fields(request, media_type, expansion_filter)
    end
end