Sha256: a0cad719e8237a6aff58ee54c6161d9840939fba55be4555213e82e1f46a5bd4

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

module Enjoy::News
  if Enjoy::News.active_record?
    class News < ActiveRecord::Base
    end
  end

  class News
    include Enjoy::News::Models::News

    include Enjoy::News::Decorators::News

    rails_admin(&Enjoy::News::Admin::News.config(rails_admin_add_fields) { |config|
      rails_admin_add_config(config)
    })
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enjoy_cms_news-0.4.1 app/models/enjoy/news/news.rb
enjoy_cms_news-0.4.0.2 app/models/enjoy/news/news.rb
enjoy_cms_news-0.4.0.1 app/models/enjoy/news/news.rb
enjoy_cms_news-0.4.0 app/models/enjoy/news/news.rb
enjoy_cms_news-0.4.0.beta3 app/models/enjoy/news/news.rb