lib/ronin/models.rb in ronin-0.1.1 vs lib/ronin/models.rb in ronin-0.1.2
- old
+ new
@@ -19,9 +19,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#++
#
-require 'ronin/extensions/kernel'
+require 'ronin/database'
require 'ronin/model'
-ronin_require 'ronin/models'
+require 'reverse_require'
+
+module Ronin
+ Database.setup do
+ require_all 'ronin/models'
+ end
+end