lib/templates-rails.rb in templates-rails-0.1.4 vs lib/templates-rails.rb in templates-rails-0.1.5
- old
+ new
@@ -1,6 +1,10 @@
require 'templates/version'
require 'templates/engine'
module Templates
- # Your code goes here...
+ # The parent controller for TemplatesController to inherit from.
+ # This is set early in the initialization process and should be set to a string.
+ # It needs to be a string so the parent controller reloads whenever there are changes in development.
+ mattr_accessor :parent_controller
+ @@parent_controller = 'ApplicationController'
end