Sha256: 5de5ef0b82a0ba68b363e2b76f34a3c60619c3d1e7acf4343edfa197da96234c

Contents?: true

Size: 337 Bytes

Versions: 37

Compression:

Stored size: 337 Bytes

Contents

module <%= @plugin_name %>
  module ControllerMethods
    # The methods are defined in a normal method the user will then mix in their CallControllers
    # The following also contains an example of configuration usage
    #
    def greet(name)
      play "#{Adhearsion.config[:<%= @plugin_file %>].greeting}, #{name}"
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
adhearsion-2.6.4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.6.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-3.0.0.rc1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-3.0.0.beta2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-3.0.0.beta1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.6.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.6.1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.6.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.5.4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.5.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.5.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.5.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.4.0 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.4.0.beta3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.4.0.beta2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.4.0.beta1 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.3.5 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.3.4 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.3.3 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt
adhearsion-2.3.2 lib/adhearsion/generators/plugin/templates/lib/plugin-template/controller_methods.rb.tt