Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename to action_args

  • Loading branch information...
commit 2fddbbb38b2f88988282734c779a3ebf21d93b8a 1 parent 10d0710
@amatsuda amatsuda authored
View
2  Gemfile
@@ -1,4 +1,4 @@
source "http://rubygems.org"
-# Specify your gem's dependencies in merbish.gemspec
+# Specify your gem's dependencies in action_args.gemspec
gemspec
View
8 README.rdoc
@@ -1,11 +1,11 @@
-= Merbish(?)
+= ActionArgs
Controller action arguments parameterizer for Rails 3 + Ruby 1.9
== What is this?
-Merbish is a Rails 3 plugin that extends your controller action methods to simply look like a general Ruby method with meaningful parameters.
+ActionArgs is a Rails 3 plugin that extends your controller action methods to simply look like a general Ruby method with meaningful parameters.
== The Controllers
@@ -24,7 +24,7 @@ So, you do never need to touch the ugly +params+ Hash to get the request paramet
== The Scaffold Generator
-Merbish provides a custom scaffold controller generator that overwrites the default scaffold generator.
+ActionArgs provides a custom scaffold controller generator that overwrites the default scaffold generator.
Thus, by hitting the following command:
% rails g scaffold user name:string
@@ -101,7 +101,7 @@ You may notice that
== Installation
Put this line in your Gemfile:
- gem 'merbish'
+ gem 'action_args'
Then bundle:
% bundle
View
8 merbish.gemspec → action_args.gemspec
@@ -1,10 +1,10 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "merbish/version"
+require 'action_args/version'
Gem::Specification.new do |s|
- s.name = 'merbish'
- s.version = Merbish::VERSION
+ s.name = 'action_args'
+ s.version = ActionArgs::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Akira Matsuda']
s.email = ['ronnie@dio.jp']
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.summary = 'Controller action arguments parameterizer for Rails 3 + Ruby 1.9'
s.description = 'Rails 3 plugin gem that supports controller action arguments.'
- s.rubyforge_project = "merbish"
+ s.rubyforge_project = 'action_args'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
View
11 lib/action_args.rb
@@ -0,0 +1,11 @@
+require File.join(File.dirname(__FILE__), 'action_args/abstract_controller')
+
+module ActionArgs
+ class Railtie < ::Rails::Railtie
+ if config.respond_to? :app_generators
+ config.app_generators.scaffold_controller = :action_args_scaffold_controller
+ else
+ config.generators.scaffold_controller = :action_args_scaffold_controller
+ end
+ end
+end
View
0  lib/merbish/abstract_controller.rb → lib/action_args/abstract_controller.rb
File renamed without changes
View
2  lib/merbish/version.rb → lib/action_args/version.rb
@@ -1,3 +1,3 @@
-module Merbish
+module ActionArgs
VERSION = "0.0.1"
end
View
2  .../merbish_scaffold_controller_generator.rb → ...ion_args_scaffold_controller_generator.rb
@@ -2,7 +2,7 @@
module Rails
module Generators
- class MerbishScaffoldControllerGenerator < ::Rails::Generators::ScaffoldControllerGenerator
+ class ActionArgsScaffoldControllerGenerator < ::Rails::Generators::ScaffoldControllerGenerator
source_root File.expand_path('../templates', __FILE__)
end
end
View
11 lib/merbish.rb
@@ -1,11 +0,0 @@
-require File.join(File.dirname(__FILE__), 'merbish/abstract_controller')
-
-module Merbish
- class Railtie < ::Rails::Railtie
- if config.respond_to? :app_generators
- config.app_generators.scaffold_controller = :merbish_scaffold_controller
- else
- config.generators.scaffold_controller = :merbish_scaffold_controller
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.