jeudi 31 mars 2016

Rails. Is the way to access to params hash from model concern?

I need to access to params inside my concern

module UrlGenerator
  extend ActiveSupport::Concern
  def test
    params[:slug]
  end 
end

How can i do? Thanks

Aucun commentaire:

Enregistrer un commentaire