-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added few fields to user form - Updated some fields as readonly - Modified the params for newly added fields
- Loading branch information
1 parent
4d3bea6
commit 068618c
Showing
3 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,7 +139,10 @@ def thank_you | |
|
||
private | ||
def users_params | ||
params.require(:user).permit(:id, :email_id, :is_subscribed, :joined_on, :source, :username) | ||
params.require(:user).permit( | ||
:id, :email_id, :is_subscribed, :joined_on, :is_blocked, | ||
:sidekiq_status, :source, :username | ||
) | ||
end | ||
|
||
def user_with_token | ||
|
@@ -154,7 +157,7 @@ def response_message(status) | |
if dummy_token? | ||
"#{status.capitalize} successfully!!" | ||
elsif @user.nil? | ||
"Hey, it seems request you are trying to access is invalid. If you have any " + | ||
"Hey, it seems request you are trying to access is invalid. If you have any " + | ||
"concerns about our newsletter's subscription, kindly get in touch with " + | ||
"<a href='mailto:[email protected]' class='email'>[email protected]</a>" | ||
else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters