Sha256: 0585f94047f23ffaaf8c288b907ddae062431de2ed568d2fd334d1876a670ff6

Contents?: true

Size: 423 Bytes

Versions: 11

Compression:

Stored size: 423 Bytes

Contents

class Weeler::BaseController < Weeler::ApplicationController
  before_filter :set_current_menu_item
  before_filter :run_weeler_required_user_method

protected

  def default_url_options(options={})
    {}
  end

private

  def set_current_menu_item
    @current_menu_item = "content"
  end

  def run_weeler_required_user_method
    eval(Weeler.required_user_method.to_s) if Weeler.required_user_method.present?
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
weeler-1.5.4 app/controllers/weeler/base_controller.rb
weeler-1.5.2 app/controllers/weeler/base_controller.rb
weeler-1.5.1 app/controllers/weeler/base_controller.rb
weeler-1.4.0 app/controllers/weeler/base_controller.rb
weeler-1.2.0 app/controllers/weeler/base_controller.rb
weeler-1.1.0 app/controllers/weeler/base_controller.rb
weeler-1.0.4 app/controllers/weeler/base_controller.rb
weeler-1.0.3 app/controllers/weeler/base_controller.rb
weeler-1.0.2 app/controllers/weeler/base_controller.rb
weeler-1.0.1 app/controllers/weeler/base_controller.rb
weeler-1.0.0 app/controllers/weeler/base_controller.rb