Sha256: 402786ff12dc6b40e257988a07ba93ad9681e0edc8c35932b3ec850d10c00234
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module Alchemy module Admin class LanguagesController < ResourcesController def index @query = Language.on_current_site.ransack(search_filter_params[:q]) @languages = @query.result.page(params[:page] || 1).per(per_page_value_for_screen_size) end def new @language = Language.new( page_layout: Config.get(:default_language)['page_layout'] ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-4.1.0.rc1 | app/controllers/alchemy/admin/languages_controller.rb |
alchemy_cms-4.1.0.beta | app/controllers/alchemy/admin/languages_controller.rb |