Sha256: 26886b00a8ceef51521b0dc0d537bf2edf87e97ba6eed6d2079f68d5a9681254
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
module EXTENSION module Controllers ## # # @author # @since # class CONTROLLER < Zen::Controllers::AdminController include ::EXTENSION::Models map "/admin/module" trait :extension_identifier => '' before_all do csrf_protection :save, :delete do respond(@zen_general_lang.errors[:csrf], 401) end end ## # # @author # @since # def initialize super @form_save_url = '' @lang = Zen::Language.load '' # Set the page title if !action.method.nil? method = action.method.to_sym if @lang.titles.key? method @page_title = @lang.titles[method] end end end ## # # @author # @since # def index end ## # # @author # @since # def edit end ## # # @author # @since # def new end ## # # @author # @since # def save end ## # # @author # @since # def delete end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zen-0.2.3 | proto/package/lib/package/controller/controllers.rb |
zen-0.2 | proto/package/lib/package/controller/controllers.rb |