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
class BowlerJSON | |
include AttrJson::Model | |
attr_json_config bad_cast: :as_nil, unknown_key: :strip | |
attr_json 'name', :string | |
validates :name, inclusion: { in: [nil, 'Dude', 'Walter', 'Donnie Who Loved Bowling'] } | |
end | |
class LeagueJSON |
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
# initialize moto SQS queue for dev environment | |
if Rails.env.development? | |
sqs = Aws::SQS::Client.new( | |
access_key_id: ENV["AWS_ACCESS_KEY_ID"], | |
region: ENV["AWS_REGION"], | |
endpoint: "http://localhost:4576/", | |
secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"], | |
verify_checksums: false | |
) |