Sha256: 4f8cdda0c2f9633c6f371b805eef8cdb1ec53f4ad216b27582d1b63c4116c09a

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 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 NestedSet
    autoload :Descendants, 'sunrise/nested_set/descendants'
    autoload :Depth, 'sunrise/nested_set/depth'
  end
  
  module Views
    autoload :FormBuilder, 'sunrise/views/form_builder'
    autoload :SearchWrapper, 'sunrise/views/search_wrapper'
    autoload :Helper, 'sunrise/views/helper'
  end
  
  module Hooks
    autoload :Kaminari, 'sunrise/hooks/kaminari'
    autoload :FriendlyId, 'sunrise/hooks/friendly_id'
  end
  
  def self.root_path
    @root_path ||= Pathname.new( File.dirname(File.expand_path('../', __FILE__)) )
  end
  
  def self.setup
    yield Config
  end
end

require 'sunrise/engine'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sunrise-cms-0.3.2 lib/sunrise.rb
sunrise-cms-0.3.1 lib/sunrise.rb
sunrise-cms-0.3.0 lib/sunrise.rb
sunrise-cms-0.3.0.rc2 lib/sunrise.rb