Sha256: a0febb82eb681152d194a1fcd40c4a498f136be8652b770fe2804d4e5016f7e7

Contents?: true

Size: 688 Bytes

Versions: 7

Compression:

Stored size: 688 Bytes

Contents

# coding: UTF-8

require 'rails'
require 'rails_i18n'

if ENV["COVERAGE"]
  require 'simplecov'
  require 'simplecov-rcov'
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter

  if ENV['COMMAND_NAME']
    SimpleCov.command_name(ENV['COMMAND_NAME'])
  end

  SimpleCov.merge_timeout(7200)
  SimpleCov.start 'rails'
end

require 'daddy/model'
require 'daddy/helpers/html_helper'
require 'daddy/models/acts_as_like'

Object.send :include, Daddy::Models::ActsAsLike::Mixin

module Daddy
  class Railtie < Rails::Railtie
    rake_tasks do
      lib = File.dirname(File.dirname(__FILE__))
      Dir[File.join(lib, 'tasks/*.rake')].each do |f|
        load f
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
daddy-0.1.5 lib/daddy/railtie.rb
daddy-0.1.4 lib/daddy/railtie.rb
daddy-0.1.3 lib/daddy/railtie.rb
daddy-0.1.2 lib/daddy/railtie.rb
daddy-0.1.1 lib/daddy/railtie.rb
daddy-0.1.0 lib/daddy/railtie.rb
daddy-0.0.22 lib/daddy/railtie.rb