Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
- #base_class_for_template_handler_required? ⇒ Boolean
- #class_attribute_supported? ⇒ Boolean
- #template_has_class_level_call_method? ⇒ Boolean
- #template_should_include_compilable? ⇒ Boolean
Instance Method Details
#base_class_for_template_handler_required? ⇒ Boolean
14 15 16 |
# File 'lib/prawnto/available_features.rb', line 14 def base_class_for_template_handler_required? ::Rails::VERSION::MAJOR < 3 end |
#class_attribute_supported? ⇒ Boolean
26 27 28 |
# File 'lib/prawnto/available_features.rb', line 26 def class_attribute_supported? ::Rails::VERSION::MAJOR >= 3 end |
#template_has_class_level_call_method? ⇒ Boolean
22 23 24 |
# File 'lib/prawnto/available_features.rb', line 22 def template_has_class_level_call_method? ::Rails::VERSION::MAJOR > 3 || (::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1) end |
#template_should_include_compilable? ⇒ Boolean
18 19 20 |
# File 'lib/prawnto/available_features.rb', line 18 def template_should_include_compilable? ::Rails::VERSION::MAJOR < 3 end |