Sha256: 6ec53ecacbd41c383e5c83b69574c2a2e9263f3ad23e46411b5086d136960362

Contents?: true

Size: 358 Bytes

Versions: 12

Compression:

Stored size: 358 Bytes

Contents

class Rad::Controller::Context < Rad::Template::Context
  attr_reader :controller
  def initialize instance_variables, controller
    super instance_variables
    @controller = controller
  end

  def controller_name
    @controller_name #workspace.controller.class.controller_name
  end

  def action_name
    @action_name #workspace.action.to_sym
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rad_core-0.0.25 lib/rad/controller/_context.rb
rad_core-0.0.24 lib/rad/controller/_context.rb
rad_core-0.0.23 lib/rad/controller/_context.rb
rad_core-0.0.22 lib/rad/controller/_context.rb
rad_core-0.0.21 lib/rad/controller/_context.rb
rad_core-0.0.20 lib/rad/controller/_context.rb
rad_core-0.0.19 lib/rad/controller/_context.rb
rad_core-0.0.18 lib/rad/controller/_context.rb
rad_core-0.0.17 lib/rad/controller/_context.rb
rad_core-0.0.16 lib/rad/controller/_context.rb
rad_core-0.0.15 lib/rad/controller/_context.rb
rad_core-0.0.14 lib/rad/controller/_context.rb