Sha256: 5e25cbf43465d655931be93e8ce6d854a71a0ecf9388c37d524990a1b1d458ac

Contents?: true

Size: 665 Bytes

Versions: 8

Compression:

Stored size: 665 Bytes

Contents

# encoding: utf-8
require 'rails_best_practices/prepares/model_prepare'
require 'rails_best_practices/prepares/mailer_prepare'
require 'rails_best_practices/prepares/schema_prepare'

module RailsBestPractices
  module Prepares
    class <<self
      attr_writer :models, :model_associations, :model_attributes, :mailers

      def models
        @models ||= Core::Models.new
      end

      def model_associations
        @model_associations ||= Core::ModelAssociations.new
      end

      def model_attributes
        @model_attributes ||= Core::ModelAttributes.new
      end

      def mailers
        @mailers ||= Core::Mailers.new
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rails_best_practices-1.0.1 lib/rails_best_practices/prepares.rb
rails_best_practices-1.0.0 lib/rails_best_practices/prepares.rb
rails_best_practices-0.10.1 lib/rails_best_practices/prepares.rb
rails_best_practices-0.10.0 lib/rails_best_practices/prepares.rb
rails_best_practices-raydog153-0.9.1 lib/rails_best_practices/prepares.rb
rails_best_practices-0.9.0 lib/rails_best_practices/prepares.rb
rails_best_practices-0.8.2 lib/rails_best_practices/prepares.rb
rails_best_practices-0.8.1 lib/rails_best_practices/prepares.rb