Class: Avo::DiscreetInformation
- Inherits:
-
Object
- Object
- Avo::DiscreetInformation
- Extended by:
- PropInitializer::Properties
- Includes:
- ActionView::Helpers::DateHelper, ActionView::Helpers::TagHelper
- Defined in:
- lib/avo/discreet_information.rb
Instance Method Summary collapse
Instance Method Details
#items ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/avo/discreet_information.rb', line 12 def items Array.wrap(resource.class.discreet_information).map do |item| if item == :timestamps (item) elsif item == :created_at (item, key: :created_at) elsif item == :updated_at (item, key: :updated_at) elsif item == :id id_item else parse_payload(item) end end.flatten.compact end |