Module: Dokno

Defined in:
lib/dokno.rb,
lib/dokno/engine.rb,
lib/dokno/version.rb,
app/models/dokno/log.rb,
lib/dokno/config/config.rb,
app/models/dokno/article.rb,
app/models/dokno/category.rb,
app/models/dokno/article_slug.rb,
app/controllers/dokno/user_concern.rb,
app/models/dokno/application_record.rb,
app/helpers/dokno/application_helper.rb,
app/controllers/dokno/pagination_concern.rb,
app/controllers/dokno/articles_controller.rb,
app/controllers/dokno/categories_controller.rb,
app/controllers/dokno/application_controller.rb,
lib/generators/dokno/install/install_generator.rb

Defined Under Namespace

Modules: ApplicationHelper, Error, Generators, PaginationConcern, UserConcern Classes: ApplicationController, ApplicationRecord, Article, ArticleSlug, ArticlesController, CategoriesController, Category, Config, Engine, Log

Constant Summary collapse

VERSION =
'1.4.14'

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
# File 'lib/dokno/config/config.rb', line 13

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



8
9
10
11
# File 'lib/dokno/config/config.rb', line 8

def self.configure
  yield config
  config.validate
end