Sha256: 3a8b67fede03b615e9abdac946cb51d89504309171b390fab3533f8eb63a9258

Contents?: true

Size: 309 Bytes

Versions: 18

Compression:

Stored size: 309 Bytes

Contents

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre20 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre19 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre18 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre17 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre16 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre15 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre14 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre13 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre12 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre11 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre10 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre9 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre8 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre7 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre6 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre5 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre4 app/controllers/languages_controller.rb
enju_biblio-0.1.0.pre3 app/controllers/languages_controller.rb