Add API data to show/index views
This commit is contained in:
@@ -280,6 +280,10 @@ class ApplicationRecord < ActiveRecord::Base
|
||||
self.class.api_attributes
|
||||
end
|
||||
|
||||
def html_data_attributes
|
||||
[]
|
||||
end
|
||||
|
||||
def serializable_hash(options = {})
|
||||
options ||= {}
|
||||
options[:only] ||= []
|
||||
|
||||
Reference in New Issue
Block a user