Ruby on Rails
Thursday, December 25, 2014
Hi! Are you ok? I wish yes...
Is it possible create a controller's concern which I can choose the methods that I'd like to inject in the destination class?
For example:
class MyController < ApplicationController
include DatasetableController
dataset for_model: Invoice, only: [:index]
end
I have developed the DatasetableController RESTfull, now I'd like to choose which verbs a controller will respond.
Is it possible?
Thanks
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dee86404-8e1b-4159-8da7-cf5cad4af31d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment