Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Extensions
- module ActsAsCustomResource
- extend ActiveSupport::Concern
- included do
- inherit_resources
- respond_to :html, :xml, :json
- define_method :collection do
- set_collection_ivar(end_of_association_chain.all.paginate(:page => params[:page], :per_page => 10))
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment