public
Description: A merb port of the attachment_fu Rails plugin
Homepage: http://rubyforge.org/projects/merb-plugins/
Clone URL: git://github.com/jackdempsey/attachmerb_fu.git
attachmerb_fu / datamapper-bindings.rb
100644 16 lines (11 sloc) 0.414 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require "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"
  DataMapper::Associations.send(:include, AttachmerbFu::ActMethods)
  
end