Commit 8d694c38d81a6502f2879374788999cb8dd052df

Authored by LeandroNunes
1 parent 45b0a5e3

ActionItem0: test

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@71 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 2 changed files with 13 additions and 0 deletions   Show diff stats
app/models/block.rb
1 1 #It's the class that define the block's content will be displayed on box in a determined web
  2 +require 'bli'
2 3 class Block < ActiveRecord::Base
3 4 include ActionView::Helpers::TagHelper
4 5 belongs_to :box
... ... @@ -15,6 +16,11 @@ class Block &lt; ActiveRecord::Base
15 16 raise _("This is a main class, don't use it")
16 17 end
17 18  
  19 +def bla
  20 +t = Tag.new
  21 +t.bli
  22 +end
  23 +
18 24 # This method always return false excepted when redefined by the MainBlock class. It mean the current block it's not the result of a
19 25 # controller action.
20 26 #
... ...
lib/bli.rb 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +class Tag
  2 +
  3 + def bli
  4 + 'I am bli'
  5 + end
  6 +
  7 +end
... ...