Module: Resourcelogic::Base::InstanceMethods
- Defined in:
- lib/resourcelogic/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
93 94 95 |
# File 'lib/resourcelogic/base.rb', line 93 def self.included(klass) klass.helper_method :resourceful?, :section end |
Instance Method Details
#resourceful? ⇒ Boolean
97 98 99 |
# File 'lib/resourcelogic/base.rb', line 97 def resourceful? self.class.resourceful? end |
#section ⇒ Object
101 102 103 104 |
# File 'lib/resourcelogic/base.rb', line 101 def section section = request.path.split("/")[1] section && section.to_sym end |