Sha256: fe47aad1dcd435a4f6d77cfabb1935cb9276069c16efa6e6e921a0f927602469

Contents?: true

Size: 358 Bytes

Versions: 9

Compression:

Stored size: 358 Bytes

Contents

class LendingPoliciesController < InheritedResources::Base
  load_and_authorize_resource
  before_filter :get_user_group, :get_item
  before_filter :prepare_options, :only => [:edit, :update]

  def index
    @lending_policies = LendingPolicy.page(params[:page])
  end

  private
  def prepare_options
    @user_groups = UserGroup.order(:position)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre36 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre35 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre34 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre33 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre32 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre31 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre30 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre29 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre28 app/controllers/lending_policies_controller.rb