-
-
Save pftg/11285346 to your computer and use it in GitHub Desktop.
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
showing_request.showing_request_notifications. | |
create!({ | |
recipient: 'listing_agent', | |
notification_type: 'email', | |
contact_name: 'John Smith', | |
contact: 'john@example.com', | |
token: 'token' | |
}, | |
without_protection: true) |
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
showing_request.showing_request_notifications.create!({ | |
recipient: 'listing_agent', | |
notification_type: 'email', | |
contact_name: 'John Smith', | |
contact: 'john@example.com', | |
token: 'token' | |
}, | |
without_protection: true) |
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
showing_request.showing_request_notifications.create!({ recipient: 'listing_agent', | |
notification_type: 'email', | |
contact_name: 'John Smith', | |
contact: 'john@example.com', | |
token: 'token' }, | |
without_protection: true) |
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
showing_request.showing_request_notifications. | |
create!({ recipient: 'listing_agent', | |
notification_type: 'email', | |
contact_name: 'John Smith', | |
contact: 'john@example.com', | |
token: 'token' }, | |
without_protection: true) |
miry
commented
Apr 25, 2014
ну молодца!
Нельзя быстро добавить элемент ни в начало, ни в конец хеша
notification_attributes = {
recipient: 'listing_agent',
notification_type: 'email',
contact_name: 'John Smith',
contact: 'john@example.com',
token: 'token'
}
showing_request.showing_request_notifications.create! notification_attributes,
without_protection: true
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment