Module: Loudmouth

Defined in:
lib/loudmouth.rb,
lib/extensions/helper.rb,
lib/generators/loudmouth/orm_helpers.rb,
lib/generators/loudmouth/views_generator.rb,
lib/generators/loudmouth/install_generator.rb,
lib/generators/loudmouth/override_controller_generator.rb

Defined Under Namespace

Modules: Controllers, Generators Classes: Engine

Constant Summary collapse

@@treasure_map =
{}
@@use_layout =
''
@@new_comment_content =
''
@@allow_anonymous =
false
@@rate_limit_cooldown =
1
@@min_comment_length =
2
@@max_comment_length =
0

Class Method Summary collapse

Class Method Details

.include_helpersObject



40
41
42
43
44
45
46
47
48
# File 'lib/loudmouth.rb', line 40

def self.include_helpers
  # ActiveSupport.on_load(:action_controller) do
  #   include Loudmouth::Controllers::Helpers
  # end

  ActiveSupport.on_load(:action_view) do
    include Loudmouth::Controllers::Helpers
  end
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Loudmouth)

    the object that the method was called on



36
37
38
# File 'lib/loudmouth.rb', line 36

def self.setup
  yield self
end