Method: StandardAPI::TestCase#view_attributes
- Defined in:
- lib/standard_api/test_case.rb
#view_attributes(record) ⇒ Object
93 94 95 96 |
# File 'lib/standard_api/test_case.rb', line 93 def view_attributes(record) return [] if record.nil? record.attributes.select { |x| !@controller.send(:excludes_for, record.class).include?(x.to_sym) } end |