Sha256: f505532e8386d9210270b51ef7cf314cd2081c81f3f119a57b5a09840bf8c19e
Contents?: true
Size: 793 Bytes
Versions: 3
Compression:
Stored size: 793 Bytes
Contents
module Spree module Api module ControllerSetup def self.included(klass) klass.class_eval do include AbstractController::Rendering include AbstractController::ViewPaths include AbstractController::Callbacks include AbstractController::Helpers include ActiveSupport::Rescuable include ActionController::Rendering include ActionController::ImplicitRender include ActionController::Rescue include ActionController::MimeResponds include CanCan::ControllerAdditions append_view_path File.expand_path("../../../app/views", File.dirname(__FILE__)) append_view_path Rails.root + "app/views" respond_to :json end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_api-1.1.0 | lib/spree/api/controller_setup.rb |
spree_api-1.1.0.rc2 | lib/spree/api/controller_setup.rb |
spree_api-1.1.0.rc1 | lib/spree/api/controller_setup.rb |