Class: Auth::Generators::ConfigurationGenerator
- Inherits:
-
Rails::Generator::Base
- Object
- Rails::Generator::Base
- Auth::Generators::ConfigurationGenerator
- Defined in:
- lib/auth/generators/configuration_generator.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(args, options = {}) ⇒ ConfigurationGenerator
constructor
A new instance of ConfigurationGenerator.
- #manifest ⇒ Object
- #spec ⇒ Object
Constructor Details
#initialize(args, options = {}) ⇒ ConfigurationGenerator
Returns a new instance of ConfigurationGenerator.
4 5 6 |
# File 'lib/auth/generators/configuration_generator.rb', line 4 def initialize(args, = {}) super(args, ) end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
2 3 4 |
# File 'lib/auth/generators/configuration_generator.rb', line 2 def model @model end |
Instance Method Details
#manifest ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/auth/generators/configuration_generator.rb', line 8 def manifest record do |m| m.directory "lib/tasks" m.directory "config/initializers" m.file "tasks/migrations.rb", "lib/tasks/sparkly_migration.rb" m.file 'initializer.rb', 'config/initializers/sparkly_authentication.rb' end end |