Sha256: 19cb2cb526c488975304f9eece79368ea2a2a3a64a033f5b98ec12a100c55ec8
Contents?: true
Size: 403 Bytes
Versions: 25
Compression:
Stored size: 403 Bytes
Contents
require 'rails/generators' module Authorization class RulesGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_auth_rules puts "WARNING - Copying authorization_rules template. Make sure to back up any existing rules before overwriting." copy_file "authorization_rules.rb", "config/authorization_rules.rb" end end end
Version data entries
25 entries across 25 versions & 2 rubygems