I hereby claim:
- I am swilgosz on github.
- I am swilgosz (https://keybase.io/swilgosz) on keybase.
- I have a public key ASAqj6aeldNo8wOAOEwCVnMdfwX-0dsDTPKuV6g2N2CXYwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| RAILS_ENV=development | |
| POSTGRES_ADAPTER=postgresql | |
| POSTGRES_USER=postgres | |
| POSTGRES_DB_NAME=sample_api_dev | |
| POSTGRES_HOST=db | |
| DB_PASSWORD=postgres | |
| RAILS_LOG_TO_STDOUT=true | |
| APP_HOME=/app/api |
| server { | |
| server_name sourcerio.com www.sourcerio.com; | |
| listen 80; | |
| listen 443 ssl http2; | |
| include letsencrypt.conf; | |
| client_max_body_size 10M; | |
| keepalive_timeout 10; | |
| proxy_set_header Host $host; |
| # frozen_string_literal: true | |
| module Driggl | |
| class PaginationMetaGenerator | |
| DEFAULT_PAGE = 1 | |
| DEFAULT_PER_PAGE = 20 | |
| def initialize(request:, total_pages:) | |
| @url = request.base_url + request.path | |
| @page = (request.params[:page].presence || DEFAULT_PAGE).to_i |
| def create | |
| user = User.create!(params.require(:data).require(:attributes)) | |
| render json: UserSerializer.new(user), status: 201 | |
| end |
| class EncryptedMapper | |
| MissingEncryptionKey = Class.new(StandardError) | |
| def event_to_serialized_record(domain_event) | |
| metadata = {} | |
| domain_event.metadata.each do |k, v| | |
| metadata[k] = v | |
| end | |
| encryption_schema = domain_event.class.respond_to?(:encryption_schema) && domain_event.class.encryption_schema |
| # app/assets/javascripts/application.js | |
| #=require 'foo' | |
| # app/assets/javascripts/foo.coffee | |
| init: -> | |
| console.log('this is function defined in foo') | |