Module: Tinymce::Hammer::ControllerMethods
- Defined in:
- lib/tinymce/hammer/controller_methods.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/tinymce/hammer/controller_methods.rb', line 3 def self.included base base.send(:hide_action, :require_tinymce_hammer) base.send(:helper_method, :require_tinymce_hammer) base.send(:hide_action, :tinymce_hammer_required?) base.send(:helper_method, :tinymce_hammer_required?) end |
Instance Method Details
#require_tinymce_hammer ⇒ Object
10 11 12 |
# File 'lib/tinymce/hammer/controller_methods.rb', line 10 def require_tinymce_hammer @tinymce_hammer_required = true end |
#tinymce_hammer_required? ⇒ Boolean
14 15 16 |
# File 'lib/tinymce/hammer/controller_methods.rb', line 14 def tinymce_hammer_required? @tinymce_hammer_required == true end |