Sha256: b545c11fc4fd9d64bee39aa650af9f930fe13147432ac6ce5bb8d97f6ef11c98

Contents?: true

Size: 362 Bytes

Versions: 94

Compression:

Stored size: 362 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 = @lending_policies.page(params[:page])
  end

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

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre27 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre26 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre25 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre24 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre23 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre22 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre21 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre20 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre19 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre18 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre17 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre16 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre15 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre14 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre13 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre12 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre11 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre10 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre9 app/controllers/lending_policies_controller.rb
enju_circulation-0.1.0.pre8 app/controllers/lending_policies_controller.rb