Sha256: 57e4f45daa3978f5414e324eb74668801878006aea2f5e6df7f4e02249c0c8a3
Contents?: true
Size: 961 Bytes
Versions: 11
Compression:
Stored size: 961 Bytes
Contents
require 'rails_i18n' require 'holiday_jp' require 'daddy/helpers/html_helper' require 'daddy/http_client' require 'daddy/model' require 'daddy/ocr' module Daddy module Rails class Railtie < ::Rails::Railtie config.before_configuration do if config.action_view.javascript_expansions config.action_view.javascript_expansions[:defaults] |= ['daddy'] end end initializer 'active_record_extension' do ActiveSupport.on_load :active_record do require 'daddy/models/crud_extension' require 'daddy/models/query_extension' ActiveRecord::Base.send(:include, Daddy::Models::CrudExtension) ActiveRecord::Base.send(:include, Daddy::Models::QueryExtension) end end initializer 'quiet_assets' do load File.join(File.dirname(__FILE__), 'quiet_assets.rb') end rake_tasks do require 'closer/tasks' end end end end
Version data entries
11 entries across 11 versions & 1 rubygems