Sha256: 15be75d68649af9a28359df3fd7507c445bcd7bdf20b5345ccf6d6a5b9fbeef3
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 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, :mailer_names [:models, :model_associations, :model_attributes, :mailer_names].each do |method_name| class_eval <<-EOS def #{method_name} @#{method_name} ||= [] end EOS end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_best_practices-0.8.0 | lib/rails_best_practices/prepares.rb |