This file contains hidden or 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
| # Assign the Artist to the Song | |
| artist = Artist.create() | |
| song = Song.create() | |
| song.artist = artist | |
| song.save | |
| artist.reload | |
| artist.songs | |
| # Build the Song from the Artist | |
| artist = Artist.create() |
This file contains hidden or 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
| class MandrillSignatureVerifier | |
| def initialize(key, url, params, signature) | |
| @key = key | |
| @url = url | |
| @params = params | |
| @signature = signature | |
| end | |
| # Return true if the signature matches | |
| def verified? |