Add API data to show/index views
This commit is contained in:
@@ -42,4 +42,12 @@ class IpAddress < ApplicationRecord
|
||||
def readonly?
|
||||
true
|
||||
end
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:user_id]
|
||||
end
|
||||
end
|
||||
|
||||
include ApiMethods
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user