Sha256: a209fd8dd8baa0db2e53464f08d496b65530ff78957b38d846364da890002748

Contents?: true

Size: 271 Bytes

Versions: 4

Compression:

Stored size: 271 Bytes

Contents

module Rails::Generators
  module BasicHelper
    def info msg        
      if self.class != @info_class
        @info_class = self.class
        Rails.logger.info "[#{@info_class}]"
      end
      Rails.logger.info "#{msg}" if RSpec::Generator.debug?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
generator-spec-0.5.0 lib/generator_spec/helpers/generator_helper.rb
generator-spec-0.4.8 lib/generator_spec/helpers/generator_helper.rb
generator-spec-0.4.7 lib/generator_spec/helpers/generator_helper.rb
generator-spec-0.4.5 lib/generator_spec/helpers/generator_helper.rb