Commit Graph

30 Commits

Author SHA1 Message Date
Marius Balteanu
13aeb797cf Use ApplicationRecord instead of ActiveRecord::Base (#38975).
Patch by Minoru Maeda (@maeda-m).

git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-23 11:52:38 +00:00
Go MAEDA
894bb2f289 Fix that Example plugin (extra/sample_plugin) breaks Activity page (#38114).
Patch by Karel Pičman.


git-svn-id: https://svn.redmine.org/redmine/trunk@22079 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-27 04:04:20 +00:00
Go MAEDA
1481c721a2 Use require_relative instead of require File.expand_path(..., __FILE__) (#38093).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +00:00
Go MAEDA
e48ff48820 Evaluate acts_as_activity_provider's scope lazily (#33664).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@20148 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-17 02:02:50 +00:00
Go MAEDA
3b55f65407 Remove frozen_string_literal magic comment from files which are not used when running the application or tests (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 06:06:53 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
aaf0c81719 Update the app name in extra/sample_plugin/init.rb: s/RedMine/Redmine/ (#28478).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17255 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-02 22:25:02 +00:00
Go MAEDA
cfd49183b0 Remove 'unloadable' from bundled sample plugin (#27963).
Patch by Mischa The Evil.


git-svn-id: http://svn.redmine.org/redmine/trunk@17170 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-01-10 08:33:42 +00:00
Toshi MARUYAMA
9fcc66b4dd use versioned migrations for sample plugin in the same way of core r16807
git-svn-id: http://svn.redmine.org/redmine/trunk@16961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-31 15:57:32 +00:00
Jean-Philippe Lang
ee82a55602 Use .before_action instead of .before_filter.
git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 07:27:31 +00:00
Jean-Philippe Lang
2277f61046 Added missing :permission option in sample plugin.
git-svn-id: http://svn.redmine.org/redmine/trunk@14031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-18 21:11:37 +00:00
Jean-Philippe Lang
dbcdc3415d Removed no longer used :find_options option for acts_as_activity_provider.
git-svn-id: http://svn.redmine.org/redmine/trunk@14030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-18 21:10:22 +00:00
Jean-Philippe Lang
9645cb83f2 ActionController::IntegrationTest is ActionDispatch::IntegrationTest.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11255 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-22 18:28:58 +00:00
Toshi MARUYAMA
ff2d374a14 add routing test to sample plugin
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10656 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-13 16:22:04 +00:00
Jean-Philippe Lang
03335d014c Restores support for :plugin support to stylesheet_link_tag and javascript_include_tag helpers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-28 09:10:46 +00:00
Jean-Philippe Lang
5e57a1a9d9 Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-25 17:17:49 +00:00
Toshi MARUYAMA
3847223841 remove trailing white-spaces from extra/sample_plugin/init.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9295 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-01 12:41:40 +00:00
Toshi MARUYAMA
db110ba35e remove trailing white-spaces from extra/sample_plugin/app/models/meeting.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9294 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-01 12:41:25 +00:00
Toshi MARUYAMA
a81927361e remove trailing white-spaces from extra/sample_plugin/app/controllers/example_controller.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-01 12:41:10 +00:00
Toshi MARUYAMA
d249989257 Rails3: rename sample_plugin .rhtml to .html.erb (#6317, #4796)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8304 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-20 08:32:30 +00:00
Jean-Philippe Lang
202d01664a Do not use settings/settings partial name in sample plugin (#3557).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2798 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-07-02 18:40:06 +00:00
Jean-Philippe Lang
0aebb69c45 Updates sample plugin README.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2530 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-26 16:37:48 +00:00
Jean-Philippe Lang
d40bf20131 Allow My Page blocks to be added to from a plugin (#2840).
Partials must be placed under the app/views/my/blocks directory of the plugin.
An example can be found in the sample plugin.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2529 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-26 16:36:56 +00:00
Jean-Philippe Lang
fe28193e4e Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-21 11:04:50 +00:00
Jean-Philippe Lang
b20281f151 Follows r1703.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1704 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-07-27 19:18:35 +00:00
Jean-Philippe Lang
3a4855d070 Activity provider example in sample plugin.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1703 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-07-27 19:10:56 +00:00
Jean-Philippe Lang
27cf6d8d64 Add unloadable to the sample plugin controller (http://dev.rubyonrails.org/ticket/6001).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1282 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-21 20:02:41 +00:00
Jean-Philippe Lang
792b7f30e3 Menus items:
* fixed broken translation when a plugin is installed (closes #649)
* small fix to the plugin API: options parameter added to Redmine::Plugin#menu

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1172 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-02-22 18:19:00 +00:00
Jean-Philippe Lang
cae547a7ea Redmine acts_as_* plugins moved to vendor/plugins.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-09-29 10:37:08 +00:00
Jean-Philippe Lang
dbcf2065b8 Added a sample plugin.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-09-23 18:50:53 +00:00