Sha256: 91e759db651eda138c16bf8270b01275269caed92eed2d07fe0d66f5081c5cd3

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

if defined?(Rails) && Rails::VERSION::MAJOR == 3
  require File.expand_path('comfortable_mexican_sofa/cms_engine', File.dirname(__FILE__))
end

[ 'comfortable_mexican_sofa/cms_rails_extensions',
  'comfortable_mexican_sofa/cms_form_builder',
  'comfortable_mexican_sofa/cms_acts_as_tree',
  '../app/models/cms_block',
  '../app/models/cms_snippet',
  'comfortable_mexican_sofa/cms_tag' 
].each do |path|
  require File.expand_path(path, File.dirname(__FILE__))
end

Dir.glob(File.expand_path('comfortable_mexican_sofa/cms_tag/*.rb', File.dirname(__FILE__))).each do |tag_path| 
  require tag_path
end

ActionView::Helpers::AssetTagHelper.register_javascript_expansion :cms => [
  'comfortable_mexican_sofa/jquery',
  'comfortable_mexican_sofa/jquery-ui',
  'comfortable_mexican_sofa/rails',
  'comfortable_mexican_sofa/cms',
  'comfortable_mexican_sofa/plupload/plupload.full.min',
  'comfortable_mexican_sofa/uploader'
]
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :cms => [
  'comfortable_mexican_sofa/reset',
  'comfortable_mexican_sofa/structure',
  'comfortable_mexican_sofa/typography'
]

FILE_ICONS = Dir.glob(File.expand_path('public/images/cms/file_icons/*.png', Rails.root)).collect{|f| f.split('/').last.gsub('.png', '')}

module ComfortableMexicanSofa
  
  # TODO
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.1 lib/comfortable_mexican_sofa.rb