Project

General

Profile

Actions

Feature #1459

closed

Allow to add own configrations or the like to be handled in dependence of Rails version

Added by liaham about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Compatible Redmine Version:

Description

It would be helpful for plugin developer to add a method with block which handles the loading of given code in dependence of the underlying Rails version.

This method could look similar to this on the API:

AdvancedPluginHelper::Configuration.to_prepare do
  # developers method here
end
Actions #1

Updated by liaham about 2 years ago

Decided to use the existing method:

AdvancedPluginHelper::Patch.apply do
  { klass: DevelopersKlass,
    method: :developers_method }
end
Actions #2

Updated by liaham about 2 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by liaham about 2 years ago

  • Target version changed from unreleased to 0.4.0
Actions

Also available in: Atom PDF