Pinned Loading
-
has_jwt_token
has_jwt_token PublicYou love to use ruby-jwt and combine it with has_secure_password. Am I right? If yes, check this gem. It allows you to issue tokens for authenticated resources.
Ruby
-
Pure Ruby sort - for sorting arrays ...
Pure Ruby sort - for sorting arrays of hashes by keys in asc or desc order 1class AwesomeSort
2class Sortee
3def initialize(sortee)
4@sortee = sortee
5end -
Fake ActiveRecord `has_many` associa...
Fake ActiveRecord `has_many` association. Of course, if you have enough fantasy, you can convert it to `has_one` or whatever. 1module DummyRelations
2def has_many(relation_name)
3class_eval do
4define_method(relation_name) do
5instance_variable_get("@#{relation_name}") || []
-
Ruby on Rails template which focuses...
Ruby on Rails template which focuses on installing whole rubocop suite and preconfigures it with opinioted style instead of using rails omakase setup. 1### README FIRST2# RuboCop:3# This template replaces rails rubocop omakase with it's own rubocop config4# Please use "--skip-rubocop" flag5 -
nix-plates
nix-plates PublicA collection of boilerplates for various projects, all powered by NixOS.
Ruby 1
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.