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

Version Path
ae_declarative_authorization-1.4.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-1.3.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-1.2.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-1.1.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-1.0.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.13.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.13.0.rc1 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.12.1 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.12.1.tim1 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.12.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.11.0.pre1 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.11.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.10.2 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.10.1 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.10.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.9.2 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.9.1 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.9.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.8.0 lib/generators/authorization/rules/rules_generator.rb
ae_declarative_authorization-0.7.0 lib/generators/authorization/rules/rules_generator.rb