Class: Releaf::ResourceTableFields

Inherits:
ResourceFields show all
Defined in:
app/lib/releaf/resource_table_fields.rb

Instance Attribute Summary

Attributes inherited from ResourceBase

#resource_class

Instance Method Summary collapse

Methods inherited from ResourceBase

#association_attributes, #association_excluded_attributes, #associations, #associations_attributes, #base_attributes, #excluded_associations, #includable_association?, #includable_association_types, #initialize, #localized_attributes, #localized_attributes?, title, title_methods, #values

Constructor Details

This class inherits a constructor from Releaf::ResourceBase

Instance Method Details

#excluded_attributesObject


3
4
5
# File 'app/lib/releaf/resource_table_fields.rb', line 3

def excluded_attributes
  super + table_excluded_attributes
end

#table_excluded_attributesObject


7
8
9
# File 'app/lib/releaf/resource_table_fields.rb', line 7

def table_excluded_attributes
  (base_attributes + localized_attributes).select{|c| c.match(/.*(_uid|_html)$/) }
end