Class: Irwi::Config
- Inherits:
-
Object
- Object
- Irwi::Config
- Defined in:
- lib/irwi/config.rb
Instance Method Summary collapse
-
#add_system_page(action, path) ⇒ Object
Add system page.
- #page_attachment_class ⇒ Object
- #page_class ⇒ Object
- #page_version_class ⇒ Object
- #system_pages ⇒ Object
- #user_class ⇒ Object
Instance Method Details
#add_system_page(action, path) ⇒ Object
Add system page
64 65 66 |
# File 'lib/irwi/config.rb', line 64 def add_system_page( action, path ) system_pages[ action.to_s ] = path.to_s end |
#page_attachment_class ⇒ Object
47 48 49 |
# File 'lib/irwi/config.rb', line 47 def .constantize end |
#page_class ⇒ Object
39 40 41 |
# File 'lib/irwi/config.rb', line 39 def page_class page_class_name.constantize end |
#page_version_class ⇒ Object
43 44 45 |
# File 'lib/irwi/config.rb', line 43 def page_version_class page_version_class_name.constantize end |
#system_pages ⇒ Object
55 56 57 58 59 |
# File 'lib/irwi/config.rb', line 55 def system_pages @system_pages ||= { 'all' => 'all' } end |
#user_class ⇒ Object
51 52 53 |
# File 'lib/irwi/config.rb', line 51 def user_class user_class_name.constantize end |