Sha256: 8fd6a819bc6b3399964812c4b8a4c2833c1712a096583e24fde37527be523a26
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ae_declarative_authorization-0.7.1 | lib/generators/authorization/rules/rules_generator.rb |