Sha256: a76508c572da5ea70f22ef2b622eb6477a768b969ff171a59884c4997c3002cf
Contents?: true
Size: 379 Bytes
Versions: 7
Compression:
Stored size: 379 Bytes
Contents
module Wicked::Controller::Concerns::Action extend ActiveSupport::Concern module ClassMethods def self.extended(base) %w{before skip_before prepend_before}.each do |action| define_method "#{action}_action" do |*names, &blk| send("#{action}_filter", *names, &blk) end unless base.respond_to? "#{action}_action" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems