module Ar2gostruct
Constants
- MODEL_DIR
- VERSION
Public Class Methods
convert!()
click to toggle source
# File lib/ar2gostruct.rb 32 def self.convert! 33 gostruct = Gostruct.new(MODEL_DIR) 34 gostruct.convert! 35 end
load()
click to toggle source
# File lib/ar2gostruct.rb 22 def self.load 23 path = ENV["require_path"] || "#{Dir.pwd}/config/environment" 24 if File.exists?(path) || File.exists?("#{path}.rb") 25 require path 26 Rails.application.eager_load! if defined?(Rails) 27 else 28 raise "failed to load app" 29 end 30 end