{"action":"created","issue":{"url":"https://api.github.com/repos/dkuk/a_common_libs/issues/3","labels_url":"https://api.github.com/repos/dkuk/a_common_libs/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dkuk/a_common_libs/issues/3/comments","events_url":"https://api.github.com/repos/dkuk/a_common_libs/issues/3/events","html_url":"https://github.com/dkuk/a_common_libs/issues/3","id":65360896,"number":3,"title":"Undefined method `favourite_project_id' ","user":{"login":"heyrex","id":1051652,"avatar_url":"https://avatars.githubusercontent.com/u/1051652?v=3","gravatar_id":"","url":"https://api.github.com/users/heyrex","html_url":"https://github.com/heyrex","followers_url":"https://api.github.com/users/heyrex/followers","following_url":"https://api.github.com/users/heyrex/following{/other_user}","gists_url":"https://api.github.com/users/heyrex/gists{/gist_id}","starred_url":"https://api.github.com/users/heyrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyrex/subscriptions","organizations_url":"https://api.github.com/users/heyrex/orgs","repos_url":"https://api.github.com/users/heyrex/repos","events_url":"https://api.github.com/users/heyrex/events{/privacy}","received_events_url":"https://api.github.com/users/heyrex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T04:12:51Z","updated_at":"2015-04-02T01:51:47Z","closed_at":null,"body":"After installing a_common_libs the /my/account page cannot be accessed\r\n\r\nError message:\r\n    Undefined method `favourite_project_id' for #<UserPreference:0x00000008923cb0> \r\n\r\nEnvironment:\r\n  Redmine version                2.6.3.stable\r\n  Ruby version                   1.9.3-p0 (2011-10-30) [x86_64-linux]\r\n  Rails version                  3.2.21\r\n  Environment                    production\r\n  Database adapter               Mysql2\r\nSCM:\r\n  Git                            1.7.9.5\r\n  Filesystem                     \r\nRedmine plugins:\r\n  a_common_libs                  1.1.3\r\n  extra_queries                  0.0.1\r\n  redmine_contacts               3.4.5\r\n  redmine_contacts_helpdesk      2.4.0\r\n  redmine_my_page_queries        2.1.6\r\n  usability                      1.0.0\r\n\r\nError log\r\n        /var/lib/gems/1.9.1/gems/activemodel-3.2.21/lib/active_model/attribute_methods.rb:407:in `method_missing'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/attribute_methods.rb:149:in `method_missing'\r\n/usr/share/redmine/plugins/a_common_libs/lib/a_common_libs/user_patch.rb:13:in `favourite_project'\r\n/usr/share/redmine/plugins/a_common_libs/app/views/hooks/a_common_libs/_favourite_project.html.erb:4:in `block in _plugins_a_common_libs_app_views_hooks_a_common_libs__favourite_project_html_erb__1391240625229227395_71289700'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/capture_helper.rb:40:in `capture'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/form_helper.rb:605:in `fields_for'\r\n/usr/share/redmine/app/helpers/application_helper.rb:1063:in `labelled_fields_for'\r\n/usr/share/redmine/plugins/a_common_libs/app/views/hooks/a_common_libs/_favourite_project.html.erb:1:in `_plugins_a_common_libs_app_views_hooks_a_common_libs__favourite_project_html_erb__1391240625229227395_71289700'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/template.rb:145:in `block in render'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:125:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/template.rb:143:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `block in instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/partial_renderer.rb:237:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/renderer.rb:41:in `render_partial'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/renderer.rb:15:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/rendering_helper.rb:24:in `render'\r\n/usr/share/redmine/lib/redmine/hook.rb:111:in `block in render_on'\r\n/usr/share/redmine/lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'\r\n/usr/share/redmine/lib/redmine/hook.rb:61:in `each'\r\n/usr/share/redmine/lib/redmine/hook.rb:61:in `block in call_hook'\r\n/usr/share/redmine/lib/redmine/hook.rb:58:in `tap'\r\n/usr/share/redmine/lib/redmine/hook.rb:58:in `call_hook'\r\n/usr/share/redmine/lib/redmine/hook.rb:158:in `call_hook'\r\n/usr/share/redmine/app/views/my/account.html.erb:29:in `block in _app_views_my_account_html_erb__1224645187859606954_69776420'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/capture_helper.rb:40:in `capture'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/helpers/form_helper.rb:378:in `form_for'\r\n/usr/share/redmine/app/helpers/application_helper.rb:1056:in `labelled_form_for'\r\n/usr/share/redmine/app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__1224645187859606954_69776420'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/template.rb:145:in `block in render'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:125:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/template.rb:143:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `block in instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/template_renderer.rb:45:in `render_template'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/template_renderer.rb:18:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/renderer.rb:36:in `render_template'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_view/renderer/renderer.rb:17:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:110:in `_render_template'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/streaming.rb:225:in `_render_template'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:103:in `render_to_body'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/renderers.rb:28:in `render_to_body'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:88:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb:16:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'\r\n/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/core_ext/benchmark.rb:5:in `ms'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:40:in `block in render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:39:in `render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb:10:in `default_render'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb:5:in `send_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:167:in `process_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:18:in `block in process_action'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:502:in `_run__1544964049843967080__process_action__1829087673449486467__callbacks'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:17:in `process_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `block in instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `instrument'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:29:in `process_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:121:in `process'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:45:in `process'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal.rb:203:in `dispatch'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_controller/metal.rb:246:in `block in action'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:36:in `call'\r\n/var/lib/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'\r\n/var/lib/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'\r\n/var/lib/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:608:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call'\r\n/var/lib/gems/1.9.1/gems/request_store-1.0.5/lib/request_store/middleware.rb:9:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/head.rb:14:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/params_parser.rb:21:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/flash.rb:242:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/cookies.rb:341:in `call'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/query_cache.rb:64:in `call'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `_run__4570882839644634479__call__1422444520153113341__callbacks'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'\r\n/var/lib/gems/1.9.1/gems/railties-3.2.21/lib/rails/rack/logger.rb:32:in `call_app'\r\n/var/lib/gems/1.9.1/gems/railties-3.2.21/lib/rails/rack/logger.rb:16:in `block in call'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/tagged_logging.rb:22:in `tagged'\r\n/var/lib/gems/1.9.1/gems/railties-3.2.21/lib/rails/rack/logger.rb:16:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/request_id.rb:22:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.21/lib/active_support/cache/strategy/local_cache.rb:72:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'\r\n/var/lib/gems/1.9.1/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'\r\n/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'\r\n/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'\r\n/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'\r\n/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'\r\n/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'\r\n/var/lib/gems/1.9.1/gems/railties-3.2.21/lib/rails/engine.rb:484:in `call'\r\n/var/lib/gems/1.9.1/gems/railties-3.2.21/lib/rails/application.rb:231:in `call'\r\n/var/lib/gems/1.9.1/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'\r\n/var/lib/gems/1.9.1/gems/passenger-5.0.5/lib/phusion_passenger/rack/thread_handler_extension.rb:85:in `process_request'\r\n/var/lib/gems/1.9.1/gems/passenger-5.0.5/lib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'\r\n/var/lib/gems/1.9.1/gems/passenger-5.0.5/lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'\r\n/var/lib/gems/1.9.1/gems/passenger-5.0.5/lib/phusion_passenger/request_handler.rb:414:in `block (3 levels) in start_threads'\r\n/var/lib/gems/1.9.1/gems/passenger-5.0.5/lib/phusion_passenger/utils.rb:111:in `block in create_thread_and_abort_on_exception'\r\n      \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dkuk/a_common_libs/issues/comments/88687751","html_url":"https://github.com/dkuk/a_common_libs/issues/3#issuecomment-88687751","issue_url":"https://api.github.com/repos/dkuk/a_common_libs/issues/3","id":88687751,"user":{"login":"dkuk","id":1817515,"avatar_url":"https://avatars.githubusercontent.com/u/1817515?v=3","gravatar_id":"","url":"https://api.github.com/users/dkuk","html_url":"https://github.com/dkuk","followers_url":"https://api.github.com/users/dkuk/followers","following_url":"https://api.github.com/users/dkuk/following{/other_user}","gists_url":"https://api.github.com/users/dkuk/gists{/gist_id}","starred_url":"https://api.github.com/users/dkuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkuk/subscriptions","organizations_url":"https://api.github.com/users/dkuk/orgs","repos_url":"https://api.github.com/users/dkuk/repos","events_url":"https://api.github.com/users/dkuk/events{/privacy}","received_events_url":"https://api.github.com/users/dkuk/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T01:51:47Z","updated_at":"2015-04-02T01:51:47Z","body":"Repo is moved to https://dkuk@bitbucket.org/dkuk/a_common_libs.git"}}