Sha256: aca90cf9ce7056f09f34431e45c172d990caec3ae25700c767f20425ca934ab4
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
$:.unshift File.dirname(__FILE__) begin require 'hashie' require 'active_support/core_ext' require 'active_support/notifications' require 'active_model_serializers' require 'mutations' require 'pry' rescue LoadError require 'rubygems' require 'hashie' require 'active_support/core_ext' require 'pry' end require "smooth/ext/core" require "smooth/documentation" require "smooth/event" require "smooth/api" require "smooth/cache" require "smooth/command" require "smooth/example" require "smooth/query" require "smooth/resource" require "smooth/serializer" require "smooth/configuration" require "smooth/version" module Smooth extend Smooth::Api::Tracking extend Smooth::Resource::Tracking extend Smooth::Event::Adapter def self.command config.command_class end def self.query config.query_class end def self.serializer config.serializer_class end def self.config Smooth::Configuration.instance end class Engine < ::Rails::Engine initializer 'smooth.load_resources', :before => :build_middleware_stack do |app| app_root = app.config.root.join("app") %w{smooth apis resources}.each do |check_folder| app_root.join(check_folder).children.each {|f| require(f) } if app_root.join(check_folder).exist? end end end if defined?(::Rails) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smooth-2.0.1 | lib/smooth.rb |