Module Footnotes::Notes::ComponentsNote
In: lib/rails-footnotes/notes/components_note.rb

Methods

included   legend   new   row  

Classes and Modules

Module Footnotes::Notes::ComponentsNote::ClassMethods

Public Class methods

[Source]

# File lib/rails-footnotes/notes/components_note.rb, line 9
      def self.included(base)
        base.extend ClassMethods
      end

[Source]

# File lib/rails-footnotes/notes/components_note.rb, line 23
      def initialize(controller)
        super
        @controller = controller
      end

Public Instance methods

[Source]

# File lib/rails-footnotes/notes/components_note.rb, line 32
      def legend
        "#{super} for #{row}"
      end

[Source]

# File lib/rails-footnotes/notes/components_note.rb, line 28
      def row
        "#{@controller.controller_name.camelize}##{@controller.action_name.camelize} Component"
      end

[Validate]