Sha256: d6eb07d6cdd7c860863a7e3dccfbcfe5449dcf3a7fbec9dfe8160fbbd2bab8f3

Contents?: true

Size: 354 Bytes

Versions: 7

Compression:

Stored size: 354 Bytes

Contents

module RailsKindeditor
  module ControllerAdditions
    module ClassMethods
      def include_kindeditor(options = {})
        proc = Proc.new do |c|
          c.instance_variable_set(:@use_kindeditor, true)
        end
        before_filter(proc, options)
      end
    end

    def self.included(base)
      base.extend ClassMethods
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_kindeditor-0.3.6 lib/rails_kindeditor/controller_additions.rb
rails_kindeditor-0.3.5 lib/rails_kindeditor/controller_additions.rb
rails_kindeditor-0.3.4 lib/rails_kindeditor/controller_additions.rb
rails_kindeditor-0.3.3 lib/rails_kindeditor/controller_additions.rb
rails_kindeditor-0.3.2 lib/rails_kindeditor/controller_additions.rb
rails_kindeditor-0.3.1 lib/rails_kindeditor/controller_additions.rb
rails_kindeditor-0.3.0 lib/rails_kindeditor/controller_additions.rb