Class: PickyGuard::Generators::PolicyGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- PickyGuard::Generators::PolicyGenerator
- Defined in:
- lib/generators/picky_guard/policy_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_policy ⇒ Object
10 11 12 13 |
# File 'lib/generators/picky_guard/policy_generator.rb', line 10 def generate_policy return unless validate_name(name) create_file dest_path(name), content(name) end |