Sha256: 85191bea6a3316c726843ff44e5fd034fa7c3dbfaec5f50402181f799bca7dd7
Contents?: true
Size: 359 Bytes
Versions: 4
Compression:
Stored size: 359 Bytes
Contents
module Corvette class Railtie < ::Rails::Railtie initializer 'corvette.basic', :after => :add_routing_paths do |app| module StringGenerator def generate_string(length) o = [('a'..'z'), ('A'..'Z'), (0..9)].map { |i| i.to_a }.flatten (0..length).map { o[rand(o.length)] }.join end end Object.include(StringGenerator) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
corvette-0.0.5 | lib/corvette/railtie.rb |
corvette-0.0.4 | lib/corvette/railtie.rb |
corvette-0.0.3 | lib/corvette/railtie.rb |
corvette-0.0.2 | lib/corvette/railtie.rb |