Skip to content

NoMethodError - after_commit #11

@roscoerush

Description

@roscoerush

Installed plugin per instructions, restarted, when I select "Import from CSV" on Issues page I get the following error:

App 20872 stderr: NoMethodError (undefined method after_commit' for CsvImport:Class): App 20872 stderr: paperclip (3.5.4) lib/paperclip/has_attached_file.rb:84:inadd_active_record_callbacks'
App 20872 stderr: paperclip (3.5.4) lib/paperclip/has_attached_file.rb:19:in define' App 20872 stderr: paperclip (3.5.4) lib/paperclip/has_attached_file.rb:4:indefine_on'
App 20872 stderr: paperclip (3.5.4) lib/paperclip.rb:178:in has_attached_file' App 20872 stderr: plugins/csv_import_issues/app/models/csv_import.rb:12:inclass:CsvImport'
App 20872 stderr: plugins/csv_import_issues/app/models/csv_import.rb:1:in <top (required)>' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:251:inrequire'
App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:251:in block in require' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:236:inload_dependency'
App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:251:in require' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:359:inrequire_or_load'
App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:502:in load_missing_constant' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:192:inblock in const_missing'
App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:190:in each' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:190:inconst_missing'
App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:514:in load_missing_constant' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:192:inblock in const_missing'
App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:190:in each' App 20872 stderr: activesupport (3.2.19) lib/active_support/dependencies.rb:190:inconst_missing'
App 20872 stderr: plugins/csv_import_issues/app/controllers/csv_imports_controller.rb:11:in new' App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/implicit_render.rb:4:insend_action'
App 20872 stderr: actionpack (3.2.19) lib/abstract_controller/base.rb:167:in process_action' App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/rendering.rb:10:inprocess_action'
App 20872 stderr: actionpack (3.2.19) lib/abstract_controller/callbacks.rb:18:in block in process_action' App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:502:in_run__4233406829296642236__process_action__464527299800572180__callbacks'
App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:405:in __run_callback' App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:81:in run_callbacks' App 20872 stderr: actionpack (3.2.19) lib/abstract_controller/callbacks.rb:17:inprocess_action'
App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/rescue.rb:29:in process_action' App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
App 20872 stderr: activesupport (3.2.19) lib/active_support/notifications.rb:123:in block in instrument' App 20872 stderr: activesupport (3.2.19) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
App 20872 stderr: activesupport (3.2.19) lib/active_support/notifications.rb:123:in instrument' App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/params_wrapper.rb:207:in process_action' App 20872 stderr: activerecord (3.2.19) lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
App 20872 stderr: actionpack (3.2.19) lib/abstract_controller/base.rb:121:in process' App 20872 stderr: actionpack (3.2.19) lib/abstract_controller/rendering.rb:45:inprocess'
App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal.rb:203:in dispatch' App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
App 20872 stderr: actionpack (3.2.19) lib/action_controller/metal.rb:246:in block in action' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:73:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:73:in dispatch' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:36:incall'
App 20872 stderr: journey (1.0.4) lib/journey/router.rb:68:in block in call' App 20872 stderr: journey (1.0.4) lib/journey/router.rb:56:ineach'
App 20872 stderr: journey (1.0.4) lib/journey/router.rb:56:in call' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:608:inc
App 20872 stderr: all'
App 20872 stderr: rack-raw-upload (1.1.1) lib/rack/raw_upload.rb:18:in call' App 20872 stderr: rack-openid (1.4.2) lib/rack/openid.rb:98:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' App 20872 stderr: rack (1.4.5) lib/rack/etag.rb:23:incall'
App 20872 stderr: rack (1.4.5) lib/rack/conditionalget.rb:25:in call' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/head.rb:14:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/params_parser.rb:21:in call' App 20872 stderr: plugins/redmine_dmsf/lib/redmine_dmsf/webdav/no_parse.rb:33:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/flash.rb:242:in call' App 20872 stderr: rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext'
App 20872 stderr: rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:341:incall'
App 20872 stderr: activerecord (3.2.19) lib/active_record/query_cache.rb:64:in call' App 20872 stderr: activerecord (3.2.19) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:405:in_run__903121937665104761__call__4342334023253068481__callbacks'
App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:405:in __run_callback' App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
App 20872 stderr: activesupport (3.2.19) lib/active_support/callbacks.rb:81:in run_callbacks' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:27:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/remote_ip.rb:31:in call' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' App 20872 stderr: railties (3.2.19) lib/rails/rack/logger.rb:32:incall_app'
App 20872 stderr: railties (3.2.19) lib/rails/rack/logger.rb:16:in block in call' App 20872 stderr: activesupport (3.2.19) lib/active_support/tagged_logging.rb:22:intagged'
App 20872 stderr: railties (3.2.19) lib/rails/rack/logger.rb:16:in call' App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/request_id.rb:22:incall'
App 20872 stderr: rack (1.4.5) lib/rack/methodoverride.rb:21:in call' App 20872 stderr: rack (1.4.5) lib/rack/runtime.rb:17:incall'
App 20872 stderr: activesupport (3.2.19) lib/active_support/cache/strategy/local_cache.rb:72:in call' App 20872 stderr: rack (1.4.5) lib/rack/lock.rb:15:incall'
App 20872 stderr: actionpack (3.2.19) lib/action_dispatch/middleware/static.rb:63:in call' App 20872 stderr: rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
App 20872 stderr: rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' App 20872 stderr: rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup'
App 20872 stderr: rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' App 20872 stderr: rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
App 20872 stderr: railties (3.2.19) lib/rails/engine.rb:484:in call' App 20872 stderr: railties (3.2.19) lib/rails/application.rb:231:incall'
App 20872 stderr: railties (3.2.19) lib/rails/railtie/configurable.rb:30:in method_missing' App 20872 stderr: passenger (4.0.53) lib/phusion_passenger/rack/thread_handler_extension.rb:74:inprocess_request'
App 20872 stderr: passenger (4.0.53) lib/phusion_passenger/request_handler/thread_handler.rb:141:in accept_and_process_next_request' App 20872 stderr: passenger (4.0.53) lib/phusion_passenger/request_handler/thread_handler.rb:109:inmain_loop'
App 20872 stderr: passenger (4.0.53) lib/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions