Add API data to show/index views
This commit is contained in:
@@ -40,7 +40,14 @@ class UserFeedback < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:user_id, :creator_id]
|
||||
end
|
||||
end
|
||||
|
||||
extend SearchMethods
|
||||
include ApiMethods
|
||||
|
||||
def user_name=(name)
|
||||
self.user = User.find_by_name(name)
|
||||
|
||||
Reference in New Issue
Block a user