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