Sha256: bc60d0e2e6894a4dc88f59d412266ce3a0453029bfdbd2536c4ab68ef9af4266

Contents?: true

Size: 256 Bytes

Versions: 61

Compression:

Stored size: 256 Bytes

Contents

module ActionViewHelperExtensions
  def super_user
    @@super_user ||= User.where(:role_id=>Role.find_by_name("Super").id).first
  end
end

ActionController::Base.send :include, ActionViewHelperExtensions
ActionController::Base.helper_method :super_user

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
wheels-0.1.30 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.28 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.27 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.25 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.24 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.23 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.22 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.21 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.20 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.19 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.18 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.17 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.16 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.15 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.14 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.13 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.12 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.11 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.10 lib/wheels/action_view_helper_extensions.rb
wheels-0.1.9 lib/wheels/action_view_helper_extensions.rb