{"action":"closed","issue":{"url":"https://api.github.com/repos/refile/refile/issues/225","labels_url":"https://api.github.com/repos/refile/refile/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/refile/refile/issues/225/comments","events_url":"https://api.github.com/repos/refile/refile/issues/225/events","html_url":"https://github.com/refile/refile/issues/225","id":76032454,"number":225,"title":"NameError: uninitialized constant Refile::ImageProcessor","user":{"login":"eddiefisher","id":2085415,"avatar_url":"https://avatars.githubusercontent.com/u/2085415?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiefisher","html_url":"https://github.com/eddiefisher","followers_url":"https://api.github.com/users/eddiefisher/followers","following_url":"https://api.github.com/users/eddiefisher/following{/other_user}","gists_url":"https://api.github.com/users/eddiefisher/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiefisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiefisher/subscriptions","organizations_url":"https://api.github.com/users/eddiefisher/orgs","repos_url":"https://api.github.com/users/eddiefisher/repos","events_url":"https://api.github.com/users/eddiefisher/events{/privacy}","received_events_url":"https://api.github.com/users/eddiefisher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-13T15:49:07Z","updated_at":"2015-05-15T14:18:36Z","closed_at":"2015-05-15T14:18:36Z","body":"file name: config/initializers/custom_image_processor.rb\r\n```\r\nclass CustomImageProcessor < Refile::ImageProcessor\r\n  def fill_watermark(img, width, height, gravity = \"Center\")\r\n    ...\r\n  end\r\n\r\n  def fit_watermark(img, width, height, gravity = \"Center\")\r\n    ...\r\n  end\r\nend\r\n\r\n[:fill, :fit, :limit, :pad, :convert, :fill_watermark, :fit_watermark].each do |name|\r\n  Refile.processor(name, CustomImageProcessor.new(name))\r\nend\r\n```\r\n\r\nerror:\r\n```\r\nNameError: uninitialized constant Refile::ImageProcessor\r\n/Users/meduser/sites/city/config/initializers/custom_image_processor.rb:1:in `<top (required)>'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/engine.rb:592:in `each'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/engine.rb:592:in `block in <class:Engine>'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/initializable.rb:30:in `instance_exec'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/initializable.rb:30:in `run'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/initializable.rb:54:in `each'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/initializable.rb:54:in `run_initializers'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/application.rb:136:in `initialize!'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/railtie/configurable.rb:30:in `method_missing'\r\n/Users/meduser/sites/city/config/environment.rb:5:in `<top (required)>'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/application.rb:103:in `require_environment!'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bundler/gems/rails-b344986bc3d9/railties/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'\r\n/Users/meduser/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'\r\nTasks: TOP => movies:update => environment\r\n(See full trace by running task with --trace)\r\n```"}}