Sha256: ba9ebb10a1cd0627b9bb5a4981a4622104bf5591c426d0546af6ea1c681e8490

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

require 'rails/railtie'
require 'time_will_tell/helpers/date_helper'
require 'time_will_tell/helpers/date_range_helper'

module TimeWillTell
  class Railtie < Rails::Railtie
    initializer "time_will_tell.helpers.date_helper" do
      ActionView::Base.send :include, TimeWillTell::Helpers::DateHelper
    end
    initializer "time_will_tell.helpers.date_range_helper" do
      ActionView::Base.send :include, TimeWillTell::Helpers::DateRangeHelper
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
time_will_tell-0.1.0 lib/time_will_tell/railtie.rb
time_will_tell-0.0.3 lib/time_will_tell/railtie.rb
time_will_tell-0.0.2 lib/time_will_tell/railtie.rb