Sha256: 523f47f96b72a7dda08e10d34a8352787a48595a82a161cc676837a82030c9c7

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

require "rails_clafer/version"
require "rails_clafer/railtie" if defined? Rails

module RailsClafer
  class << self
    def print
      init
      require 'rails_clafer/clafer_printer'
      require 'rails_clafer/clafer_model'
      claferCode = ClaferPrinter.print_clafers ClaferModel.abstract_clafers
      puts claferCode
      claferCode
    end

    def init
      Rake::Task[:environment].invoke
      Rails.application.eager_load!
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_clafer-0.1.7 lib/rails_clafer.rb
rails_clafer-0.1.5 lib/rails_clafer.rb
rails_clafer-0.1.4 lib/rails_clafer.rb
rails_clafer-0.1.3 lib/rails_clafer.rb
rails_clafer-0.1.2 lib/rails_clafer.rb