Sha256: f2a04334fadad232f5504545bed3c39be342d903bef52a7d7c08e9f3db2c6620

Contents?: true

Size: 314 Bytes

Versions: 47

Compression:

Stored size: 314 Bytes

Contents

class FrequenciesController < InheritedResources::Base
  respond_to :html, :json
  has_scope :page, :default => 1
  load_and_authorize_resource

  def update
    @frequency = Frequency.find(params[:id])
    if params[:move]
      move_position(@frequency, params[:move])
      return
    end
    update!
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre9 app/controllers/frequencies_controller.rb
enju_biblio-0.1.0.pre8 app/controllers/frequencies_controller.rb
enju_biblio-0.1.0.pre7 app/controllers/frequencies_controller.rb
enju_biblio-0.1.0.pre6 app/controllers/frequencies_controller.rb
enju_biblio-0.1.0.pre5 app/controllers/frequencies_controller.rb
enju_biblio-0.1.0.pre4 app/controllers/frequencies_controller.rb
enju_biblio-0.1.0.pre3 app/controllers/frequencies_controller.rb