Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override concern #1145

Closed
ghost opened this issue Apr 15, 2018 · 2 comments
Closed

How to override concern #1145

ghost opened this issue Apr 15, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 15, 2018

I want override concern resource_finder.rb which include method provider

@Marinlemaignan
Copy link
Contributor

Marinlemaignan commented Apr 16, 2018

yep just override provider method from your application_controller, or any child controllers if you need more granularity..
something like:

  def provider
    if request_for_cool_stuff?
      'cool_stuff_bro'
    else
      super
    end
  end

@MaicolBen
Copy link
Collaborator

thanks @Marinlemaignan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants