Module: Polemic

Defined in:
lib/polemic/rails/railtie.rb,
lib/polemic.rb,
lib/polemic/ability.rb,
lib/polemic/version.rb,
lib/polemic/rails/engine.rb,
lib/polemic/standart_renderer.rb,
lib/polemic/commentable_methods.rb,
lib/generators/polemic/views_generator.rb,
lib/polemic/rails/action_view_extension.rb,
lib/generators/polemic/install_generator.rb,
lib/polemic/rails/active_record_extension.rb

Overview

require “blah_blah_blah/ability”

Defined Under Namespace

Modules: ActiveRecordExtension, CommentableMethods, Generators, ViewMethods Classes: Ability, BaseController, CommentsController, Configuration, Engine, Railtie, StandardRenderer

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configObject

Global settings for Polemic



16
17
18
# File 'lib/polemic.rb', line 16

def self.config
  @config
end

.configure {|@config ||= Polemic::Configuration.new| ... } ⇒ Object

Yields:



11
12
13
# File 'lib/polemic.rb', line 11

def self.configure(&block)
  yield @config ||= Polemic::Configuration.new
end