Sha256: 5ce8a0a9ef9090b086d5a4d1f0df5b4484b3b51440dfff568d797d1f7f30d791
Contents?: true
Size: 646 Bytes
Versions: 10
Compression:
Stored size: 646 Bytes
Contents
# `Action` provides a scope for markup rendered via [Tilt][ti] and `before` blocks within # a controller. # # [ti]: https://github.com/rtomayko/tilt class Stasis class Action < Scope # `String` -- Path to the layout for this action. attr_accessor :_layout # `String` -- If present, render this path instead of the default. attr_accessor :_render def initialize(stasis) @_stasis = stasis # Some plugins define methods to be made available to action scopes. This call # binds those methods. @_stasis.plugins.each do |plugin| _bind_plugin(plugin, :action_method) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems