Sha256: e425d76e74cde83b07d0d2949b443f0c0aafc13496a18c74d62c651b3fee1b4f

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

module Espresso
  def self.locale_files
    Dir[File.join(File.dirname(__FILE__), 'espresso', 'locales', '*')]
  end
end

require 'espresso/objects_controller'
require 'espresso/model'

if defined? Rails
  ActiveRecord::Base.send :include, Espresso::Model if defined? ActiveRecord
  ActionView::Base.send :include, Espresso::Helpers if defined? ActionView
  I18n.load_path.unshift(*Espresso.locale_files)
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
krasivotokak-espresso-0.0.15 lib/espresso.rb
krasivotokak-espresso-0.0.16 lib/espresso.rb
espresso-0.1.1 lib/espresso.rb
espresso-0.1.0 lib/espresso.rb
espresso-0.0.16 lib/espresso.rb
espresso-0.0.15 lib/espresso.rb