Access browser detection methods inside cell

171 Views Asked by At

I'm using gem 'cells' and gem 'browser' in my rails 3.2 application. What should I do to access browser gem's methods inside my cells.

I found a solution for devise, which suggests

class AuthenticateCell < Cell::Rails 
    include Devise::Controllers::Helpers 
    def login 
      @user = User.new 
      render 
    end 
end 

What should I need to include to access 'browser' gems methods inside cells

Thanks!

0

There are 0 best solutions below