Class: PassionView::Card::Base
Constant Summary
Constants included
from Actionable
Actionable::CONTEXTS, Actionable::TYPES
Instance Attribute Summary
#user
Class Method Summary
collapse
Instance Method Summary
collapse
#contextualize_auth
#initialize, #resource_path
Methods included from Routable
#contextualize_routes, #routes
#initialize, lookup_ancestors
Class Method Details
.i18n_scope ⇒ Object
17
18
19
|
# File 'lib/passion_view/card/base.rb', line 17
def self.i18n_scope
:cards
end
|
Instance Method Details
#to_key ⇒ Object
7
8
9
|
# File 'lib/passion_view/card/base.rb', line 7
def to_key
[resource.id]
end
|
#to_model ⇒ Object
11
12
13
|
# File 'lib/passion_view/card/base.rb', line 11
def to_model
resource
end
|