Sha256: 7868bf31b86ce52f52f37da1cd4ed7eda3f375dc8175d63b224b69dac8d92aab

Contents?: true

Size: 326 Bytes

Versions: 84

Compression:

Stored size: 326 Bytes

Contents

module Content
  extend ActiveSupport::Concern
  
  included do
    validates_presence_of :title
                              
    acts_as_taggable
    alias :keywords :tags
    permalink :title, :history => true
  
    field :title
    field :excerpt, :as => :text
    alias_attribute :description, :excerpt    
  end
  
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
fullstack-cms-0.3.7 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.3.6 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.3.5 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.3.4 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.3.3 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.3.2 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.3.1 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.36 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.35 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.34 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.33 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.31 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.30 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.29 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.28 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.27 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.26 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.25 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.24 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
fullstack-cms-0.2.23 lib/generators/fullstack/cms/templates/rails/lib/support/content.rb