Module: Plugins::PostReorder::MainHelper
- Defined in:
- app/helpers/plugins/post_reorder/main_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#post_reorder_on_active(plugin) ⇒ Object
here all actions on going to active you can run sql commands like this: results = ActiveRecord::Base.connection.execute(query); plugin: plugin model.
-
#post_reorder_on_inactive(plugin) ⇒ Object
here all actions on going to inactive plugin: plugin model.
-
#post_reorder_on_upgrade(plugin) ⇒ Object
here all actions to upgrade for a new version plugin: plugin model.
Class Method Details
.included(klass) ⇒ Object
2 3 4 |
# File 'app/helpers/plugins/post_reorder/main_helper.rb', line 2 def self.included(klass) # klass.helper_method [:my_helper_method] rescue "" # here your methods accessible from views end |
Instance Method Details
#post_reorder_on_active(plugin) ⇒ Object
here all actions on going to active you can run sql commands like this: results = ActiveRecord::Base.connection.execute(query); plugin: plugin model
10 11 |
# File 'app/helpers/plugins/post_reorder/main_helper.rb', line 10 def post_reorder_on_active(plugin) end |
#post_reorder_on_inactive(plugin) ⇒ Object
here all actions on going to inactive plugin: plugin model
15 16 |
# File 'app/helpers/plugins/post_reorder/main_helper.rb', line 15 def post_reorder_on_inactive(plugin) end |
#post_reorder_on_upgrade(plugin) ⇒ Object
here all actions to upgrade for a new version plugin: plugin model
20 21 |
# File 'app/helpers/plugins/post_reorder/main_helper.rb', line 20 def post_reorder_on_upgrade(plugin) end |