Sha256: a9f407999afbbb7b0870685daec30f5e491a9df41c026ed436719fa6154019cb
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 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(lang('zen_general.errors.csrf'), 401) end end ## # # @author # @since # def initialize super Zen::Language.load 'language' # Set the page title if !action.method.nil? method = action.method.to_sym @page_title = lang("language.titles.#{method}") rescue nil 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.4.1 | proto/package/lib/package/controller/controllers.rb |
zen-0.2.4 | proto/package/lib/package/controller/controllers.rb |