Module: SimpleCms

Defined in:
lib/simple_cms.rb,
lib/simple_cms/engine.rb,
lib/simple_cms/version.rb,
app/models/simple_cms/page.rb,
app/models/simple_cms/full_page.rb,
app/helpers/simple_cms/application_helper.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: AdminController, Engine, FullPage, Page, PagesController

Constant Summary collapse

VERSION =
"0.9.1"

Class Method Summary collapse

Class Method Details

.assetsObject



7
8
9
10
11
12
# File 'lib/simple_cms.rb', line 7

def self.assets
  asset_list = Dir[SimpleCms.root_path.join('vendor/assets/javascripts/ckeditor/**', '*.{js,css}')].inject([]) do |list, path|
    list << Pathname.new(path).relative_path_from(SimpleCms.root_path.join('vendor/assets/javascripts'))
  end
  asset_list
end

.root_pathObject



14
15
16
# File 'lib/simple_cms.rb', line 14

def self.root_path
  @root_path ||= Pathname.new( File.dirname(File.expand_path('../', __FILE__)) )
end