Sha256: 3d3d4bd42ed1cc521b82fc4bc58174ddaabfa8e433b842ef8cacf1daecb587eb
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
# (c) 2017 Ribose Inc. # # Hashrocket style looks better when describing task dependencies. # rubocop:disable Style/HashSyntax namespace :db do desc "Mask every DB record according to rules set up in the respective " \ "ActiveRecord" # If just: # task :mask do ... end, # then connection won't be established. Will need the '=> :environment'. # # URL: # http://stackoverflow.com/questions/14163938/activerecordconnectionnotestablished-within-a-rake-task # task :mask => :environment do AttrMasker::Performer::ActiveRecord.new.mask end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
attr_masker-0.1.1 | lib/tasks/db.rake |
attr_masker-0.1.0 | lib/tasks/db.rake |