##// END OF EJS Templates
Redmine acts_as_* plugins moved to vendor/plugins....
Jean-Philippe Lang -
r763:cae547a7ea51
parent child
Show More
@@ -1,93 +1,88
1 # Be sure to restart your web server when you modify this file.
1 # Be sure to restart your web server when you modify this file.
2
2
3 # Uncomment below to force Rails into production mode when
3 # Uncomment below to force Rails into production mode when
4 # you don't control web/app server and can't set it the proper way
4 # you don't control web/app server and can't set it the proper way
5 # ENV['RAILS_ENV'] ||= 'production'
5 # ENV['RAILS_ENV'] ||= 'production'
6
6
7 # Bootstrap the Rails environment, frameworks, and default configuration
7 # Bootstrap the Rails environment, frameworks, and default configuration
8 require File.join(File.dirname(__FILE__), 'boot')
8 require File.join(File.dirname(__FILE__), 'boot')
9
9
10 Rails::Initializer.run do |config|
10 Rails::Initializer.run do |config|
11 # Settings in config/environments/* take precedence those specified here
11 # Settings in config/environments/* take precedence those specified here
12
12
13 # Skip frameworks you're not going to use
13 # Skip frameworks you're not going to use
14 # config.frameworks -= [ :action_web_service, :action_mailer ]
14 # config.frameworks -= [ :action_web_service, :action_mailer ]
15
15
16 # Add additional load paths for sweepers
16 # Add additional load paths for sweepers
17 config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
17 config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
18
19 config.plugin_paths = ['lib/plugins', 'vendor/plugins']
20
18
21 # Force all environments to use the same logger level
19 # Force all environments to use the same logger level
22 # (by default production uses :info, the others :debug)
20 # (by default production uses :info, the others :debug)
23 # config.log_level = :debug
21 # config.log_level = :debug
24
22
25 # Use the database for sessions instead of the file system
23 # Use the database for sessions instead of the file system
26 # (create the session table with 'rake create_sessions_table')
24 # (create the session table with 'rake create_sessions_table')
27 # config.action_controller.session_store = :active_record_store
25 # config.action_controller.session_store = :active_record_store
28
26
29 # Enable page/fragment caching by setting a file-based store
27 # Enable page/fragment caching by setting a file-based store
30 # (remember to create the caching directory and make it readable to the application)
28 # (remember to create the caching directory and make it readable to the application)
31 # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
29 # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
32
30
33 # Activate observers that should always be running
31 # Activate observers that should always be running
34 # config.active_record.observers = :cacher, :garbage_collector
32 # config.active_record.observers = :cacher, :garbage_collector
35 config.active_record.observers = :message_observer
33 config.active_record.observers = :message_observer
36
34
37 # Make Active Record use UTC-base instead of local time
35 # Make Active Record use UTC-base instead of local time
38 # config.active_record.default_timezone = :utc
36 # config.active_record.default_timezone = :utc
39
37
40 # Use Active Record's schema dumper instead of SQL when creating the test database
38 # Use Active Record's schema dumper instead of SQL when creating the test database
41 # (enables use of different database adapters for development and test environments)
39 # (enables use of different database adapters for development and test environments)
42 # config.active_record.schema_format = :ruby
40 # config.active_record.schema_format = :ruby
43
41
44 # See Rails::Configuration for more options
42 # See Rails::Configuration for more options
45
43
46 # SMTP server configuration
44 # SMTP server configuration
47 config.action_mailer.smtp_settings = {
45 config.action_mailer.smtp_settings = {
48 :address => "127.0.0.1",
46 :address => "127.0.0.1",
49 :port => 25,
47 :port => 25,
50 :domain => "somenet.foo",
48 :domain => "somenet.foo",
51 :authentication => :login,
49 :authentication => :login,
52 :user_name => "redmine",
50 :user_name => "redmine",
53 :password => "redmine",
51 :password => "redmine",
54 }
52 }
55
53
56 config.action_mailer.perform_deliveries = true
54 config.action_mailer.perform_deliveries = true
57
55
58 # Tell ActionMailer not to deliver emails to the real world.
56 # Tell ActionMailer not to deliver emails to the real world.
59 # The :test delivery method accumulates sent emails in the
57 # The :test delivery method accumulates sent emails in the
60 # ActionMailer::Base.deliveries array.
58 # ActionMailer::Base.deliveries array.
61 #config.action_mailer.delivery_method = :test
59 #config.action_mailer.delivery_method = :test
62 config.action_mailer.delivery_method = :smtp
60 config.action_mailer.delivery_method = :smtp
63
61
64 # Uncomment this line if the engines plugin is installed.
65 # This will ensure that engines is loaded first.
66 # config.plugins = ["engines", "*"]
67 end
62 end
68
63
69 ActiveRecord::Errors.default_error_messages = {
64 ActiveRecord::Errors.default_error_messages = {
70 :inclusion => "activerecord_error_inclusion",
65 :inclusion => "activerecord_error_inclusion",
71 :exclusion => "activerecord_error_exclusion",
66 :exclusion => "activerecord_error_exclusion",
72 :invalid => "activerecord_error_invalid",
67 :invalid => "activerecord_error_invalid",
73 :confirmation => "activerecord_error_confirmation",
68 :confirmation => "activerecord_error_confirmation",
74 :accepted => "activerecord_error_accepted",
69 :accepted => "activerecord_error_accepted",
75 :empty => "activerecord_error_empty",
70 :empty => "activerecord_error_empty",
76 :blank => "activerecord_error_blank",
71 :blank => "activerecord_error_blank",
77 :too_long => "activerecord_error_too_long",
72 :too_long => "activerecord_error_too_long",
78 :too_short => "activerecord_error_too_short",
73 :too_short => "activerecord_error_too_short",
79 :wrong_length => "activerecord_error_wrong_length",
74 :wrong_length => "activerecord_error_wrong_length",
80 :taken => "activerecord_error_taken",
75 :taken => "activerecord_error_taken",
81 :not_a_number => "activerecord_error_not_a_number"
76 :not_a_number => "activerecord_error_not_a_number"
82 }
77 }
83
78
84 ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
79 ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
85
80
86 GLoc.set_config :default_language => :en
81 GLoc.set_config :default_language => :en
87 GLoc.clear_strings
82 GLoc.clear_strings
88 GLoc.set_kcode
83 GLoc.set_kcode
89 GLoc.load_localized_strings
84 GLoc.load_localized_strings
90 GLoc.set_config(:raise_string_not_found_errors => false)
85 GLoc.set_config(:raise_string_not_found_errors => false)
91
86
92 require 'redmine'
87 require 'redmine'
93
88
@@ -1,24 +1,21
1 == Sample plugin
1 == Sample plugin
2
2
3 This is a sample plugin for Redmine
3 This is a sample plugin for Redmine
4
4
5 == Installation
5 == Installation
6
6
7 === Adding plugin support to Redmine
7 === Adding plugin support to Redmine
8
8
9 1. Install engines plugin
9 To add plugin support to Redmine, install engines plugin:
10 See: http://rails-engines.org/
10 See: http://rails-engines.org/
11
11
12 2. Uncomment this line in config/environment.rb:
13 config.plugins = ["engines", "*"]
14
15 === Plugin installation
12 === Plugin installation
16
13
17 1. Copy the plugin directory into the vendor/plugins directory
14 1. Copy the plugin directory into the vendor/plugins directory
18
15
19 2. Migrate plugin:
16 2. Migrate plugin:
20 rake db:migrate_plugins
17 rake db:migrate_plugins
21
18
22 3. Start Redmine
19 3. Start Redmine
23
20
24 Installed plugins are listed on 'Admin -> Information' screen.
21 Installed plugins are listed on 'Admin -> Information' screen.
1 NO CONTENT: file renamed from lib/plugins/acts_as_event/init.rb to vendor/plugins/acts_as_event/init.rb
NO CONTENT: file renamed from lib/plugins/acts_as_event/init.rb to vendor/plugins/acts_as_event/init.rb
1 NO CONTENT: file renamed from lib/plugins/acts_as_event/lib/acts_as_event.rb to vendor/plugins/acts_as_event/lib/acts_as_event.rb
NO CONTENT: file renamed from lib/plugins/acts_as_event/lib/acts_as_event.rb to vendor/plugins/acts_as_event/lib/acts_as_event.rb
1 NO CONTENT: file renamed from lib/plugins/acts_as_searchable/init.rb to vendor/plugins/acts_as_searchable/init.rb
NO CONTENT: file renamed from lib/plugins/acts_as_searchable/init.rb to vendor/plugins/acts_as_searchable/init.rb
1 NO CONTENT: file renamed from lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb to vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb
NO CONTENT: file renamed from lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb to vendor/plugins/acts_as_searchable/lib/acts_as_searchable.rb
1 NO CONTENT: file renamed from lib/plugins/acts_as_watchable/init.rb to vendor/plugins/acts_as_watchable/init.rb
NO CONTENT: file renamed from lib/plugins/acts_as_watchable/init.rb to vendor/plugins/acts_as_watchable/init.rb
1 NO CONTENT: file renamed from lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb to vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb
NO CONTENT: file renamed from lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb to vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb
General Comments 0
You need to be logged in to leave comments. Login now