Skip to content

Commit

Permalink
fixing model skipping behavior in nifty:scaffold when not passing arg…
Browse files Browse the repository at this point in the history
…uments
  • Loading branch information
ryanb committed Sep 23, 2010
1 parent dba8f68 commit a21b3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/nifty/scaffold/scaffold_generator.rb
Expand Up @@ -50,7 +50,7 @@ def initialize(*args, &block)
end

if @model_attributes.empty?
@skip_model = false # skip model if no attributes
@skip_model = true # skip model if no attributes
if model_exists?
model_columns_for_attributes.each do |column|
@model_attributes << Rails::Generators::GeneratedAttribute.new(column.name.to_s, column.type.to_s)
Expand Down

0 comments on commit a21b3df

Please sign in to comment.