Sha256: 198beef1f3bd41bdcac2b2b774253781d812635ff94bdce4111ad0d143f7c7a4

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require "feather_cms/version"
require "feather_cms/template_cache"
require "feather_cms/config"
require "feather_cms/model"
require "feather_cms/railtie" if defined?(Rails)

module FeatherCms
  include Model

  def self.included(base)
    base.extend FeatherCms::Model::ClassMethods
    if Config.template_store_type == :file 
      base.define_feather_cms_callbacks
    end
    base.template_content_field :content
    base.send(:include, FeatherCms::Model::InstanceMethods)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feather_cms-0.0.4 lib/feather_cms.rb