Module: Prototypical::Controller

Defined in:
lib/prototypical/controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/prototypical/controller.rb', line 3

def self.included(base)
  base.before_action :enable_prototyping if Prototypical.enable_on_include?
end

Instance Method Details

#enable_prototypingObject



7
8
9
10
11
# File 'lib/prototypical/controller.rb', line 7

def enable_prototyping
  return unless Prototypical.enabled?

  append_prototypical_view_path
end