models: include all int/bool columns as html data attributes by default.
This commit is contained in:
@@ -18,14 +18,6 @@ class UserNameChangeRequest < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:user_id]
|
||||
end
|
||||
end
|
||||
|
||||
include ApiMethods
|
||||
|
||||
def update_name!
|
||||
user.update!(name: desired_name)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user