jackdempsey / attachmerb_fu

A merb port of the attachment_fu Rails plugin

attachmerb_fu / activerecord-bindings.rb
100644 17 lines (11 sloc) 0.452 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require File.join(File.dirname(__FILE__), 'lib', "attachmerb_fu")
#require "geometry"
#require "tempfile_ext"
 
# make sure we're running inside Merb
if defined?(Merb::Plugins)
 
  # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it
  Merb::Plugins.config[:attachmerb_fu] = {
  }
  
  #Merb::Plugins.add_rakefiles "attachmerb_fu/merbtasks"
  
  ActiveRecord::Base.send(:extend, AttachmerbFu::ActMethods)
  
end