Sha256: d722cc0503717831cb288361a138a418ca4a70c9effe87a63d08edbeb390e4b3

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

module Rad
  class ControllerContext < TemplateContext
    def controller
      workspace.controller.must_be.defined
    end    
    
    def controller_name
      @controller_name #workspace.controller.class.controller_name
    end
    
    def action_name
      @action_name #workspace.action.to_sym
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_core-0.0.13 lib/rad/controller/controller_context.rb