Sha256: 3b0622f33477d41aac16c13dcf298e85638bd7205d4dd1869153b2881867f530
Contents?: true
Size: 1.95 KB
Versions: 23
Compression:
Stored size: 1.95 KB
Contents
# encoding: utf-8 require 'pathname' require 'sunrise/core_ext' require 'sunrise/version' module Sunrise autoload :Utils, 'sunrise/utils' autoload :Config, 'sunrise/config' autoload :AbstractModel, 'sunrise/abstract_model' module Models autoload :Asset, 'sunrise/models/asset' autoload :Structure, 'sunrise/models/structure' autoload :StructureType, 'sunrise/models/structure_type' autoload :PositionType, 'sunrise/models/position_type' autoload :Role, 'sunrise/models/role' autoload :RoleType, 'sunrise/models/role_type' autoload :Header, 'sunrise/models/header' autoload :User, 'sunrise/models/user' autoload :Ability, 'sunrise/models/ability' autoload :Settings, 'sunrise/models/settings' end module CarrierWave autoload :Glue, 'sunrise/carrierwave/glue' autoload :BaseUploader, 'sunrise/carrierwave/base_uploader' autoload :FileSizeValidator, 'sunrise/carrierwave/file_size_validator' end module Views autoload :FormBuilder, 'sunrise/views/form_builder' autoload :SearchWrapper, 'sunrise/views/search_wrapper' autoload :Helper, 'sunrise/views/helper' end module Hooks module Adapters autoload :ActiveRecord, 'sunrise/hooks/adapters/active_record' autoload :Mongoid, 'sunrise/hooks/adapters/mongoid' end end # Regexp machers for context-based russian month names and day names translation LOCALIZE_ABBR_MONTH_NAMES_MATCH = /(%[-\d]?d|%e)(.*)(%b)/ LOCALIZE_MONTH_NAMES_MATCH = /(%[-\d]?d|%e)(.*)(%B)/ LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH = /^%a/ LOCALIZE_STANDALONE_DAY_NAMES_MATCH = /^%A/ def self.root_path @root_path ||= Pathname.new(File.dirname(File.expand_path('../', __FILE__))) end def self.setup yield Config end def self.activities if defined?(Mongoid::Document) PublicActivity::Activity.desc(:created_at) else PublicActivity::Activity.order("created_at DESC") end end end require 'sunrise/engine'
Version data entries
23 entries across 23 versions & 1 rubygems