Module: EffectivePosts

Includes:
EffectiveGem
Defined in:
lib/effective_posts.rb,
lib/effective_posts/engine.rb,
lib/effective_posts/version.rb,
lib/generators/effective_posts/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Engine

Constant Summary collapse

VERSION =
'2.0.3'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/effective_posts.rb', line 7

def self.config_keys
  [
    :posts_table_name, :layout, :categories,
    :use_category_routes, :use_blog_routes,
    :use_effective_roles, :use_active_storage,
    :per_page, :post_meta_author,
    :submissions_enabled, :submissions_require_current_user,
    :submissions_require_approval, :submissions_note,
    :mailer
  ]
end

.permitted_paramsObject



21
22
23
24
25
26
# File 'lib/effective_posts.rb', line 21

def self.permitted_params
  @permitted_params ||= [
    :title, :excerpt, :description, :draft, :category, :slug, :published_at, :body, :tags, :extra,
    :image, :start_at, :end_at, :location, :website_name, :website_href, roles: []
  ]
end