Sha256: a9b91841038f46c7882e925d061b6554f9170ef2e81e3208a8985a11bb189f12

Contents?: true

Size: 1.09 KB

Versions: 24

Compression:

Stored size: 1.09 KB

Contents

Dir[File.dirname(__FILE__) + '/lib/<%= plugin_name_underscored %>/easy_patch/**/*.rb'].each {|file| require_dependency file }
Dir[File.dirname(__FILE__) + '/extra/easy_patch/**/*.rb'].each { |file| require_dependency file }

# this block is executed once just after Redmine is started
# means after all plugins are initialized
# it is place for plain requires, not require_dependency
# it should contain hooks, permissions - base class in Redmine is required thus is not reloaded
ActiveSupport.on_load(:easyproject, yield: true) do

  require '<%= plugin_name_underscored %>/internals'
  require '<%= plugin_name_underscored %>/hooks'

end

# this block is called every time rails are reloading code
# in development it means after each change in observed file
# in production it means once just after server has started
# in this block should be used require_dependency, but only if necessary.
# better is to place a class in file named by rails naming convency and let it be loaded automatically
# Here goes query registering, custom fields registering and so on
RedmineExtensions::Reloader.to_prepare do

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
redmine_extensions-0.6.3 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.6.2 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.6.1 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.6.0 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.4.5 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.5.1 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.4.4 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.4.3 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.4.1 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.4.0 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.4.0.beta lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.11 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.10 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.9 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.8 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.7 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.6 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.4 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.3 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb
redmine_extensions-0.3.2 lib/generators/redmine_extensions/plugin/templates/after_init.rb.erb