opoloo / lines-engine

Lines is a customizable blog framework for Rails. It aims at making publishing simple and beautiful.
http://lines.opoloo.com
GNU Lesser General Public License v3.0
216 stars 102 forks source link

undefined method `helper` for ActionController::API:Class #24

Closed aziflaj closed 5 years ago

aziflaj commented 6 years ago

I'm using Rails controllers that inherit from ActionController::Base and ActionController::API, and when I run specs, this happens:

NoMethodError:
  undefined method `helper' for ActionController::API:Class
# /path/to/gems/lines-engine-1.2.3/lib/lines/engine.rb:33:in `block (2 levels) in <class:Engine>'

Weirdly, the app runs fine (w/o this error) when I run it using bundle exec puma -C config/puma.rb.

aziflaj commented 6 years ago

I found a fix, will open a PR soon