Skip to content

Instantly share code, notes, and snippets.

View rakesh87's full-sized avatar
🎯

Rakesh Verma rakesh87

🎯
  • Eos
  • bangalore
View GitHub Profile
# MODEL
class Case < ActiveRecord::Base
include Eventable
has_many :tasks
concerning :Assignment do
def assign_to(new_owner:, details:)
transaction do
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key