Class: AdminWidgets::ScopesWidget

Inherits:
BaseWidget
  • Object
show all
Defined in:
lib/admin_widgets/scopes_widget.rb

Defined Under Namespace

Classes: Scope

Instance Method Summary collapse

Methods inherited from BaseWidget

#capture, #content_block, #helper, #method_missing, #root

Methods included from Memoization

#memoize

Methods included from Delegation

#delegate

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AdminWidgets::BaseWidget

Instance Method Details

#contentObject



4
5
6
7
8
# File 'lib/admin_widgets/scopes_widget.rb', line 4

def content
  div :class => 'scopes' do
    content_block
  end
end

#scope(name, options = {}) ⇒ Object

DSL methods



13
14
15
16
17
18
# File 'lib/admin_widgets/scopes_widget.rb', line 13

def scope(name, options = {})
  rawtext Scope.new(self, name, options).to_html

  # Haml support hack
  ''
end