Module: Nested::Angular::Sinatra
- Defined in:
- lib/nested.rb
Instance Method Summary collapse
-
#create_resource(*args, &block) ⇒ Object
def create_resource(name, singleton, collection, &block).
- #nested_angular_config(config = nil) ⇒ Object
Instance Method Details
#create_resource(*args, &block) ⇒ Object
def create_resource(name, singleton, collection, &block)
280 281 282 |
# File 'lib/nested.rb', line 280 def create_resource(*args, &block) angularize(super) end |
#nested_angular_config(config = nil) ⇒ Object
284 285 286 287 288 289 290 |
# File 'lib/nested.rb', line 284 def nested_angular_config(config=nil) if config @nested_angular_config = config else @nested_angular_config ||= {} end end |