Module: Erbal::Rails
- Defined in:
- lib/erbal/rails.rb
Defined Under Namespace
Classes: Rails_2_3_TemplateHandler
Class Method Summary
collapse
Class Method Details
.register_template_handler_for_2_3 ⇒ Object
17
18
19
20
|
# File 'lib/erbal/rails.rb', line 17
def self.register_template_handler_for_2_3
ActionView::Template.register_template_handler :erb, Rails_2_3_TemplateHandler
ActionView::Template.register_template_handler :rhtml, Rails_2_3_TemplateHandler
end
|
.version_unsupported ⇒ Object
13
14
15
|
# File 'lib/erbal/rails.rb', line 13
def self.version_unsupported
raise "Sorry, this version of Erbal doesn't support Rails #{ActionPack::VERSION::MAJOR}.#{ActionPack::VERSION::MINOR}.#{ActionPack::VERSION::TINY}."
end
|