Module: FinePrint::ControllerAdditions
- Defined in:
- lib/fine_print/controller_additions.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Internally these methods think of contract names as strings, not symbols.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Internally these methods think of contract names as strings, not symbols. Any names passed in as symbols are converted to strings.
7 8 9 |
# File 'lib/fine_print/controller_additions.rb', line 7 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#fine_print_return ⇒ Object
See the README
16 17 18 |
# File 'lib/fine_print/controller_additions.rb', line 16 def fine_print_return redirect_to session.delete(:fine_print_return_to) || root_path end |
#fine_print_skipped_contract_names ⇒ Object
11 12 13 |
# File 'lib/fine_print/controller_additions.rb', line 11 def fine_print_skipped_contract_names @fine_print_skipped_contract_names ||= [] end |