From 8d694c38d81a6502f2879374788999cb8dd052df Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Tue, 10 Jul 2007 20:00:10 +0000 Subject: [PATCH] ActionItem0: test --- app/models/block.rb | 6 ++++++ lib/bli.rb | 7 +++++++ 2 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 lib/bli.rb diff --git a/app/models/block.rb b/app/models/block.rb index 2f74650..976fb1c 100644 --- a/app/models/block.rb +++ b/app/models/block.rb @@ -1,4 +1,5 @@ #It's the class that define the block's content will be displayed on box in a determined web +require 'bli' class Block < ActiveRecord::Base include ActionView::Helpers::TagHelper belongs_to :box @@ -15,6 +16,11 @@ class Block < ActiveRecord::Base raise _("This is a main class, don't use it") end +def bla +t = Tag.new +t.bli +end + # This method always return false excepted when redefined by the MainBlock class. It mean the current block it's not the result of a # controller action. # diff --git a/lib/bli.rb b/lib/bli.rb new file mode 100644 index 0000000..696dd4a --- /dev/null +++ b/lib/bli.rb @@ -0,0 +1,7 @@ +class Tag + + def bli + 'I am bli' + end + +end -- libgit2 0.21.2